• Resolved runningwolf

    (@runningwolf)


    I have posts that are not in English and I tag them with a certain tag on WordPress – Is there a way to limit a certain advert to NOT display on this tag with AdRotate?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Arnan de Gans

    (@adegans)

    Not as a feature, but you can with some PHP.
    PHP code is use in your theme files – Or with some extra trickery can be turned into a shortcode.

    Something like:
    if(!has_tag('your_non_english_tag')) echo adrotate_group(1);

    Remove the ! near the start to show group 1 only for that tag.

    Thread Starter runningwolf

    (@runningwolf)

    Ok thanks, appreciate your feedback – where the theme files? And can I hide / not display that group for that tag instead? Adsense doesn’t display for that language (Afrikaans)

    Plugin Author Arnan de Gans

    (@adegans)

    For single posts probably a file called single.php – But that depends on the theme a bit. If you made a layout with blocks you can also see if a block that runs PHP exists and try if that works.

    Thread Starter runningwolf

    (@runningwolf)

    I didn’t use blocks and I’m trying to hide it – but I am not sure where to put the code on single.php or content.php – have tried on both, but it doesn’t work, will keep on trying though

    Plugin Author Arnan de Gans

    (@adegans)

    Some more advanced themes use all kinds of nonstandard files. I can’t really comment on that.
    Your theme developer can advise you on that though 😉

    Just be careful when editing files as small mistakes can cause big problems.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.