• Does anyone know how to accomplish this? When you click on an UTW tag I would like to list the posts but only with excerpts. Right now it lists the full posts.

    Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Easist would be to make a tag.php file. To start with, I’d suggest copying your theme’s index.php to tag.php.

    Edit the new tag.php and find the_content. Replace that with the_excerpt.

    Does that help?

    Thread Starter volfreak

    (@volfreak)

    hmmm. I don’t think that’s exactly what I am looking for. I don’t want to show excerpts for all the posts on the main page, just excerpts for all the posts when you click on a tag.

    Like https://www.domain.com/index.php?tag=helpme

    Does that make sense?

    HandySolo is exactly correct. I’ve done exactly that on my blog with UTW. Create a tag.php either by opening index.php or better, archive.php and saving it as tag.php. Then edit tag.php changing the_content to the_excerpt. Your main page will still show full posts, but when you click on a tag, the resulting page will show excerpts.

    When you click on a UTW tag, UTW will check to see if your theme has a file named tag.php.

    If you do, it’ll use it to display the articles for that tag.
    If you don’t, it’ll use your theme’s index.php instead.

    So, if you want to list excerpts of posts for the tag, then I’ll stand by my earlier response. (which won’t affect your index.php file).

    [update: ensworth beat me by 50 seconds! I’m getting slow]

    Thread Starter volfreak

    (@volfreak)

    Wow, thanks for the quick responses. I didn’t follow that at first but now I understand. I just copied my archive to tag.php and edited it and that worked like a charm.

    thank you very much!

    Help! I’d really like to do this, but my theme (Connections Reloaded)’s index.php doesn’t contain _content. does anyone have any clue what I should be doing instead, or is this not an option for me?

    Thanks!

    Rav

    oh: if you want to have a look:

    https://www.brasstacks.org.uk/africa/tag/poverty

    thanks!

    Wrong url: your tags are here – https://brasstacks.org.uk/africa/blog/tag/poverty

    good point, thank you.

    i’ve worked out the essence of the problem: my index, tag, category, and search results pages all refer back to post.php for most of their content. but if I change that to _excerpt, even permalinks just give you an excerpt. Is there anyway I can change these individual templates to override post.php and show excerpts?

    Thanks.

    Not in that theme. It belongs to that group of themes which – stupidly – takes out the Loop from all the template files, making the customization of different views a PITA.

    You could use a lot of conditionals in that post.php file or (it’s a big job) you could eliminate it completely by copying the loop from it in every template file where it is called, and then deleting it + customizing the Loops in the different files.

    Thanks, Moshu. I’m thinking going back and using a *MORE* split in each post – manually – will actually be easier… but thanks!

    Thank you for the solution made ensworth. What I’ve to do is:
    Copy my original archive.php and rename it to tag.php and then voila I succeeded, check out my sites:
    Entrepreneur Indonesia
    Notes:
    However, I’m failed when I’m copying index.php and rename it to tag.php, but archive.php works for me, thanks to all…

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘ultimate tag warrior to display excerpt instead of full post’ is closed to new replies.