All posts tagged is_page_template()

Using wp_reset_query() to make is_page_template() conditional tag behave with sidebar and footer.

One of the great features of wordpress is the conditional tags. Those are very powerful tags that you can use in templates to change content depending on a condition. There’s especially one very handful tag, when it comes to creating custom templates: is_page_template() . With this tag, you can check which template is being used by the current page. The use is quite simple: (don’t forget the .php extension or it won’t work.) This tag becomes very handy, when for … Continue reading