Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Spacetime

    (@spacetime)

    The easiest way would be to exclude (blacklist) category for woocommerce posts (if it exists, of course).

    Thread Starter haitonesia

    (@haitonesia)

    thanks for reply, but the ads still appearing

    example page : https://japanesia.co.id/shop/product/jual-nendoroid-kosaki-onodera/ in “Figure” category

    Plugin Author Spacetime

    (@spacetime)

    Marking this topic as resolved.

    ywait4ever

    (@ywait4ever)

    This is marked as resolved but I’m experiencing this issue too. Could you please post the resolution?

    Plugin Author Spacetime

    (@spacetime)

    If you need to exclude ads from page or two then you can either disable ads on these posts/pages or blacklist urls.

    If there are more pages to exclude and they have part of url in common then you can filter them with a simple PHP code.

    Contact me via the link in the plugin if you need help.

    Hi i have sent to you a email from the link of support inside the plugin for exclude any posts start with the same url… i need your php code and instructions for do it…Really thanks in advance for your help! ps. your plugin is awesome!

    Plugin Author Spacetime

    (@spacetime)

    I believe I replied with some delay. If you didn’t get it please let me know.

    I’m posting here a universal solution to exclude ads on pages that start with common url. For example, to exclude ads from all pages that contain /shop/ in the address use the following PHP code (don’t forget to enable PHP processing for the block):

    <?php if (strpos ($_SERVER ['REQUEST_URI'], '/shop/') === false) { ?>
    
    AD CODE
    
    <?php } ?>

    This code would exclude ads from pages like

    http://domain.com/shop/page1.html
    http://domain.com/shop/page2.html
    http://domain.com/shop/contacts
    http://domain.com/shop/

    I love you my friend! You save me! Really thanks!!!! and congrats again for the plugin! Thanks thanks thanks

    Plugin Author Spacetime

    (@spacetime)

    πŸ™‚

    Plugin Author Spacetime

    (@spacetime)

    Version 1.5.7 now supports url patterns:

    To filter all urls starting with /url-start use /url-start*
    To filter all urls that contain url-pattern use *url-pattern*
    to filter all urls ending with url-end use *url-end

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Exclude Woocommerce post’ is closed to new replies.