• Say I set up a page called ‘thoughts’ for the latest posts (in settings->reading->Posts page (dropdown).

    Is it possible to access The Title (i.e. “Thoughts”)? the_title(); now only shows the most recent post.

    I’m also struggling to get any Custom Field info. Even when I hard-code the page’s ID.

    Can anybody shed any light on this?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Which template file are you modifying? index.php?

    Thread Starter christhesoul

    (@christhesoul)

    header.php – since I want my title tag and h1 tag to read “Thoughts”, as opposed to the title of the first post retrieved from the loop.

    Try using something like:

    <title><?php if ( is_home()) echo 'Thoughts';
    else {bloginfo('name');}?>
    </title>

    in header.php

    Thread Starter christhesoul

    (@christhesoul)

    Yeah, that’s what I’ve resorted to at the moment. It’s just not very dynamic having to hard-code echo ‘Thoughts’.

    Oh well, not to worry. Thanks for trying.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I get info about the latest posts page?’ is closed to new replies.