WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
is_page_template( 'mytemplate.php' ) doesn't work (3 posts)

  1. pikkabbu
    Member
    Posted 1 year ago #

    Hello,
    My theme has a template for blog excerpt (i.e. blog-excerpt.php)

    So I'm trying to put a conditional tag:

    is_page_template( 'blog-excerpt.php' ) as no one else work (
    (neither is_page nor is_single)

    Surprisingly,
    is_page_template( 'blog-excerpt.php' ) doens't work either.

    Any help please ?

    http://wordpress.org/extend/plugins/widget-logic/

  2. alchymyth
    Forum Moderator
    Posted 1 year ago #

    your site/theme might be running any other queries before the call of the widgets, which is distorting the original query.

    what theme are you currently using?

  3. pikkabbu
    Member
    Posted 1 year ago #

    Hello alchymyth,

    I'm running responsive, http://wordpress.org/extend/themes/responsive

    Others conditional tags (is_single(), is_page() work fine, but obviously not for this page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic