View Full Version : truncated category posts? help
archer
03-29-2008, 09:43 PM
okay.. i've got categories set up with the posts in them.
the problem is that the theme template is truncating the postsEye Candy (http://chosenmen.com/category/eye-candy/):
ie rather than showing the full post the surfer only sees a line of text and then a link to Read Full Post
i want to change that so the category shows the entire post.
now in reading the codex at wordpress i think i'm supposed to change replace the_exerpt with the_content.
but where will i find that to change? the theme doesn't have a category.php
Gaystoryman
03-29-2008, 10:53 PM
More than likely you'll find it in the index template.php file
Gaystoryman
03-29-2008, 11:00 PM
Depends as well as to what php pages comes with your theme... if there is a post.php page or such, also more than likely you might also find it on your 'page.php' .
archer
03-31-2008, 03:04 PM
bugger it all to hell.
can't find it... search everywhere for a variety of words/phrases....
i'll try again when i cool down!
Gaystoryman
03-31-2008, 03:12 PM
bugger it all to hell.
can't find it... search everywhere for a variety of words/phrases....
i'll try again when i cool down!
There really is so much crap in those pages, or so it seems. I'd not use any 'search' function, just look through it manually, it really should be in your 'index-template.php' file.
I downloaded your theme ... your category page isn't using the index but is using the archive.php. If you open it you'll see it lists all the conditional tags for archived pages including categories. Once you get past all of that, you'll see this:
<div class="entry">
<?php the_excerpt(); ?>
<p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read Full Post »</a></p>
</div>
I'm pretty sure it's the <?php the_excerpt(); ?> tag that is causing your page to display only the first line or so of the post.
archer
03-31-2008, 07:33 PM
that did the trick bec!
:bang: :bang: :bang:
tnx!
Oh good, and I'm glad you figured out to replace that tag with one that shows the full post ... I was in a rush out the door and didn't explain that part! lol
rawTOP
04-01-2008, 12:04 PM
Looks like I'm a little late, but the reason why they truncated the post on the categories page was to avoid duplicate content penalties with search engines. If you repeat the full post over and over the spiders will get confused about what the authoritative URL is for the content. The best thing to do is to write snippets ("optional exerpts" in WordPress) and use those on category pages.
Then again all of that depends on the nature of the post. If it's mostly pictures and video, then it's much less of an issue... But if it's mostly text then you should be careful...
archer
04-01-2008, 01:15 PM
wow. good to know rawTOP
tnx