• Resolved AelitaX

    (@aelitax)


    I can’t seem to hide ads from single post if the post is older than 100 posts.
    Because the search engine couldn’t find that post.
    Is there a way to show all posts or disable specific post?

    //Sorry I found another way to disable (by specify the post with a category)

    • This topic was modified 8 years, 5 months ago by AelitaX.
Viewing 1 replies (of 1 total)
  • Plugin Author Namith Jawahar

    (@namithjawahar)

    The post list artificially is limited to 100 most recent posts for performance reasons. In most cases using a category or tag is the better and more efficient work around.

    In case you need all posts listed in the plugin admin selection boxes at the cost of plugin performance you can make a quick edit in the plugin code to allow all posts.
    To do this open the file controls.php located at wp-insert\includes\controls and then scroll to line 511 to see the line $posts = get_posts('numberposts=100'); and modify it as $posts = get_posts('numberposts=-1'); and save the file. You will now be able to see all posts in the rules sections.

    You may or may not see a performance degradation in the plugin admin depending on your browser and computer performance. It the performance degradation is severe just reverse the above steps.

Viewing 1 replies (of 1 total)

The topic ‘Hide Ads on old post’ is closed to new replies.