WordPress.org

Forums

[resolved] Different content in index.php and single.php ? (5 posts)

  1. xiscomax
    Member
    Posted 7 years ago #

    Like podria to insert different content in index.php and single.php in my wordpress?

    Here I leave a graph like example of which I want to do
    http://www.webculos.com/downloads/single.gif

    I need that the content of index.php does not appear when entering single.php uses the label <! --more--> but not same me sirve for that reason.

    Salu2

  2. moshu
    Member
    Posted 7 years ago #

    Don't use "more".
    Use the excerpt field for the index (and replace the_content tag with the_excerpt in the file).

  3. xiscomax
    Member
    Posted 7 years ago #

    Ok, Like inserting the images in index?

  4. moshu
    Member
    Posted 7 years ago #

    I am not sure I understand your last question.

    What I described above is a clear solution:
    1. Always put the text + image that you want on your index in the Excerpt field when writing a post.
    2. Put the "single content" as usual in the post text input area.
    3. Make sure you have the_excerpt tag in the index Loop; and the_content in the single.php Loop.
    It should work.

  5. xiscomax
    Member
    Posted 7 years ago #

    xD thank you very much moshu, your information to served perfect, I hope to me to be able devolverte the favor.

    Thanks.

    Me cheered ace the Day. :P

    I feel my English, I am Spanish

Topic Closed

This topic has been closed to new replies.

About this Topic