WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Featured Posts Plugin (YAFPP)
YAFPP Causing is_home() to return true on a page (3 posts)

  1. anpsince83
    Member
    Posted 3 years ago #

    In one of my page templates I'm calling get_featured_posts() function and using the loop method.

    It is causing the is_home() function to return true on any page that uses this template. If I remove the YAFPP function call, is_home() then returns false like it should.

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    the plugin function may leave the original query_string altered and disturbed;

    difficult to tell without disecting the whole plugin code.

    to reset this, try to add wp_reset_query(); before your conditional statement.

  3. anpsince83
    Member
    Posted 3 years ago #

    alchymyth, that seemed to solve the issue. Thanks for the tip.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic