ThemeShaper Forums » Thematic


Full posts in tag archives

(3 posts)
  • Started 10 years ago by cmongraf
  • Latest reply from cmongraf
  • This topic is resolved
  1. Hi,

    I'm just finishing the child theme for my blog. There's one thing I couldn't manage, even with the help of the mighty interwebs and this wonderful forum.

    I am using a child theme consisting of a style.css and functions.php and I'm looking for a filter to show full posts in the tag archives.

    Is there something similar to this filter which I use to show full posts in the category archives?

    // full posts in category archives
    function childtheme_content($content) {
    	if (is_category()) {
    		$content= 'full';}
    	return $content;
    add_filter('thematic_content', 'childtheme_content');

    This was posted by Chris somewhere here and works great for the categories.

    Another question: This time, I tried to completely avoid modified template files in my child theme and only used functions.php and style.css, which I find pretty hard because I'm not very good at filters and php generally. Do I gain any advantage from that or is it totally okay to do it the classic child theme way?

    I would appreciate your help!

    Posted 10 years ago #

    instead of is_category you'd want is_tag

    Posted 10 years ago #
  3. Perfect, thanks Helga!

    here is the Filter I added to the functions.php of my Child Theme:

    // full posts in tag archives
    function childtheme_tag_archives($content) {
    	if (is_tag()) {
    		$content= 'full';}
    	return $content;
    add_filter('thematic_content', 'childtheme_tag_archives');

    This tutorial was quite helpful: Using Filter Hooks in WordPress Child Themes

    Kind regards,


    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.