• Hello everyone.

    I’ve set my files up so that my home page is static and my posts page is entitled “Events Calendar”.

    In header.php of my template, I am able to reference the Events Calendar page by way of “$wp_query->is_posts_page”, but in page.php not so much.

    No amount of

    • is_page, the_title, get_the_title, is_paged, or $wp_query->is_posts_page
    • will work. I’ve tried using the slug, the actual page title, etc.

      It must be something simple. Any help very much appreciated…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Use this to dump your query vars:

    echo "<pre>"; print_r($wp_query->query_vars); echo "</pre>";

    You might want:

    echo get_query_var('p');

    or

    echo get_query_var('page_id');

    Thread Starter matius

    (@matius)

    Hi, none of those work (at least how I’m using them) in page.php for my posts page. It works for all other pages though.

    Appreciate the suggestion nonetheless.

    Any of these Conditional Tags help?

    Thread Starter matius

    (@matius)

    Thanks for your help. Still feeling my way around here; created a custom template for that page & it works with the $wp_query. Wish I could explain better! Thanks again though –

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“Posts Page” reference help’ is closed to new replies.