WordPress.org

Support

Support » Plugins and Hacks » Yet Another Featured Posts Plugin (YAFPP) » YAFPP Causing is_home() to return true on a page

YAFPP Causing is_home() to return true on a page

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael

    @alchymyth

    Forum Moderator

    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.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘YAFPP Causing is_home() to return true on a page’ is closed to new replies.
Skip to toolbar