How to use "if" in this code?

Discussion in 'WordPress' started by Divvy, Jun 17, 2017.

  1. #1
    Hello guys,

    Maybe someone can help me.

    I'm using tradeexpert script in my wordpress blog.
    To use skimming traffic, I changed the following code in my homepage:

    From:
    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
    PHP:
    To:
    <a href="/webmasters/out.php?s=100,75,65&u=<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
    PHP:
    Now I have installed this plugin:
    https://wordpress.org/plugins/page-links-to/

    Screenshot of the plugin:
    [​IMG]

    My idea is to use always this code in my posts:
    <a href="/webmasters/out.php?s=100,75,65&u=<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
    PHP:
    But when I use a custom URL I want to use the default code:
    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
    PHP:
    Would be great if someone can help me with this :)

    Plugin code:
    https://paste2.org/4Fa60fpe

    Thank you guys and a happy weekend to all!
     
    Divvy, Jun 17, 2017 IP