• When I click on a category on my site (www.GreatBlighty.com) I get a list of posts in that category – all fine so far. It then displays a list of the posts comprising of their titles and a small UNFORMATTED summary of the content. My questions are as follows (1) Why does it not apply the correct formatting – is there any way to fix this? (2) How do I configure it so it displays no summary at all – just the titles of the posts? Thanks!

Viewing 15 replies - 1 through 15 (of 15 total)
  • 1. Because the archive.php template is using thh_excerpt instead of the_content – and the excerpt by default takes away the html markup.
    2. Open the archive.php in a text editor and delete the call for the_excerpt.

    The Loop in Action: Excerpts Only should help with item #2. Basically, remove all the_excerpt() bits.

    Thread Starter buzzlightyear

    (@buzzlightyear)

    Damn you guys are quick – I’ll give it a try …

    Thread Starter buzzlightyear

    (@buzzlightyear)

    Works a treat – thanks guys :o)

    thanks for the follow-up. It’s always nice to know that our suggestions worked!

    Thread Starter buzzlightyear

    (@buzzlightyear)

    OK, another question following on from yesterday’s…

    If you check out my site (http://www.GreatBlighty.com), scroll to the bottom of the category list and you’ll find ‘Photography’. If you click on that you’ll see that I am now getting a nice list of post titles. What would be really nice is if the system could generate a small thumb nail of the pictures contained within the actual posts in this category list.

    I can see this could get complicated though as obviously the posts themselves have thumbnail versions of the images already. The category list thumbnails would have to be even smaller – a fixed size even. All of this would be applicable to the Photography category only. So any ideas with this? Or any other suggestions / better ways of doing this?

    I’d take a look at the Category Templates in the Codex. Including the proper template tags in it might get the result you want. I am not sure about the details but probably you’ll figure out with some help.

    Thread Starter buzzlightyear

    (@buzzlightyear)

    I had a look at the link you gave. I can see that for my Photography category I have to create a category-xx.php file within the current theme directory. I see that there is a hierachy of files that the program looks at first namely:

    category-xx.php
    category.php
    archive.php
    index.php

    So I’ve looked to see what category number ‘Photography’ is and copy the archive.php file to a new file category-85.php. I then tried putting in some unique ‘sticky-text’ as the information on the link tells you to, but it is not being displayed? As per my previous comments above, I removed <?php the_excerpt(); ?> from archive.php which worked fine. Now though, even though I’ve created this new category-85.php file it is not displaying anything different in this particular category to any other. Any ideas? Once I’ve got this cracked I know its then a simple case of editing this file specifically to get my thumb nail images to display (which I am still no nearer to working out how to do this by the way) …

    Thread Starter buzzlightyear

    (@buzzlightyear)

    In addition, if the system will create thumbnails (albeit by manual selection as to their size) then I would of thought that it would be possible to hard code the upload process to always create an additional thumbnail for the category listing that was of a fixed size, e.g. 100 x 100 pixels?

    Thread Starter buzzlightyear

    (@buzzlightyear)

    More comments welcome …

    Thread Starter buzzlightyear

    (@buzzlightyear)

    Would be grateful if someone would comment on this question …

    I think I can help a little. I’ve been using a plugin called WPicasa. It works with Picasa 2. You create an extract from Picasa which you upload to an albums folder. Instead of a long-winded description here, please look at my site http://www.jwurster.us/wordpress/.

    I have a Photographs category like you. I also just created a Page to call this Category.

    WPicasa can be found at beaucollins.com/wpicasa/.

    jim

    Thread Starter buzzlightyear

    (@buzzlightyear)

    I think this may do it – thanks for you’re response Jim :o)

    There’s also another plugin called WP-Picasa-Gallery that may be an alternative.

    I got WP-Picasa-Gallery to work. It may be more appropriate to what you want. It displays all the images that you uploaded in the post. WPicasa just shows the 1st image. Check out my site for examples.
    jim http://www.jwurster.us/wordpress/

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

The topic ‘Category Post Listings’ is closed to new replies.