WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to display some info under POSTS ONLY

[Resolved] How to display some info under POSTS ONLY

  • Hey guys

    I have a problem where I want to display some information on ALL of the posts right between the Title and the content part. In the old versions of WP you could just edit page.php file in the right place and that would be it – the information would be displayed on all posts and on all pages (good enough for me).

    Now I’ve been asked to help a friend of mine with his blog and he liked the “Grey gets green” theme (http://themes.wordpress.net/columns/2-columns/987/gray-gets-green-10/). So I downloaded the theme and started to work on it. The problem is, the index.php page is used to show both the front page AND the posts (and page.php is used only for the pages).

    I’ve now tried to “fix” this problem myself for some hours (googled it too…), but without any results.

    Can you help by any chance?

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • In the old versions of WP you could just edit page.php file in the right place and that would be it – the information would be displayed on all posts and on all pages

    That’s completely wrong.
    index = homepage
    single.php = single post view
    page.php = Pages.
    Reading: http://codex.wordress.org/Template_Hierarchy

    You need a single.php for displaying individual posts.

    Rrrrrrright…

    Meh! I’m glad I’ve asked, otherwise I could try to “fix” it for another hours… Now I’ve just made a copy of page.php as single.php and it works as I want it to… Great!

    Thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] How to display some info under POSTS ONLY’ is closed to new replies.
Skip to toolbar