WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to display some info under POSTS ONLY (3 posts)

  1. MaxT
    Member
    Posted 7 years ago #

    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!

  2. moshu
    Member
    Posted 7 years ago #

    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.

  3. MaxT
    Member
    Posted 7 years ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Topic