ThemeShaper Forums » Power Blog

[closed]

Full Posts on Category Pages

(8 posts)
  • Started 10 years ago by dstntmbrk
  • Latest reply from jrobben
  1. I need to show full posts on my category pages. I have an art and video blog, so excerpts kind of kill the visual aspect.

    I posted this question on a related thread and got this response from Chris:

    Hi,

    try this code in your child theme's functions.php:

    function childtheme_content($content) {
    	if (is_category()) {
    		$content= 'full';}
    	return $content;
    }
    
    add_filter('thematic_content', 'childtheme_content');

    Chris

    Unfortunately this hasn't worked for me. Probably my own doing because I have no PHP knowledge. I've tried inserting this code in several different parts of my functions.php, but never with any results.

    Any suggestions? Do I need to insert the code on a specific line? Am I supposed to fill in any info of my own into the code?

    Posted 10 years ago #
  2. Hi,

    this code works here without any problems .. and .. no, it doesn't matter where you embed this code in your child theme's functions.php as long as you're not breaking the PHP structure / syntax.

    Could you please send your functions.php to chris (at) wupperpiraten (dot) de ?

    I will include the code, test it and send it back.

    Chris

    Posted 10 years ago #
  3. just emailed you. thanks!

    Posted 10 years ago #
  4. someone else suggested replacing the_excerpt with the_content in the categories template. i tried it and it worked.

    they also mentioned that it might not be a good way to go because of SEO, though. should i avoid this option?

    Posted 10 years ago #
  5. from a SEO standpoint the issue was probably a concern with duplicate content. The category post being the same as the posts on the main index page. One way to avoid that is to disallow search engines access to your category pages with a robot.txt entry

    Posted 10 years ago #
  6. good point. any suggestions on what that entry should look like? does it go in my functions.php or my categories?

    Posted 10 years ago #
  7. Hi guys-

    I wouldn't recommend altering thematics category template as the changes will not survive an update to thematic. If you're going the custom template route I suggest you copy the category.php from thematic into your child theme and make your changes there.

    The robots.txt entry in unnecessary because thematic adds <meta name="robots" content="noindex,follow" /> to category pages by default. Look in thematic >library > extensions > header-extensions.php at thematic_create_robots() for more detail.

    -Gene

    Posted 10 years ago #
  8. Gene - Thanks for the update on thematic_create_robots - I want my categories indexed, just not any of the other archives. I will take a look at that.

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.