• Hi!
    I want to add some text and links to some of my posts. But not in index or category, just on the single pages. Can anyone point me in the right direction?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The theme file you’re looking for could be called single.php or content-single.php – or something else, depending on your theme. Which are you using?

    Thread Starter Odenberg

    (@murmelin)

    I made my own theme and it contains a single.php file.

    I want to add dome extra text in the end of the post that only shows as single post. How can I do that? Im very greatful for all help I can get.

    Edit single.php to put the text wherever you want it to go. It will then appear in every single post.

    Thread Starter Odenberg

    (@murmelin)

    Thank you, but that’s not what Im looking for.

    I would like to add some extra sentenses (and links) to some posts. The additions are not the same for all posts. Excerpts dont work, since the posts are of different length. Placing it in the single.php will not work since then it will be the same addtion to all single posts.

    Is there a way to hide a part of a single post?

    Thanks for explaining better what you’re trying to do. Perhaps Custom Fields would work. There are also plug-ins to help manage custom fields, such as:

    http://ww.wp.xz.cn/extend/plugins/advanced-custom-fields/

    http://ww.wp.xz.cn/extend/plugins/custom-field-template/

    Once you add the fields to your posts, you then edit your single.php template have it display the custom fields.

    Thread Starter Odenberg

    (@murmelin)

    Thank you!
    Custom fields is the answer. Now I just have to make them do as I want…

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Add extra text to single posts’ is closed to new replies.