ThemeShaper Forums » Thematic

[closed]

Posts only display as excerpts.

(2 posts)
  • Started 3 years ago by wobbey
  • Latest reply from middlesister
  • This topic is not resolved
  1. wobbey
    Member

    The site I am working on http://huc.photonicsg3.net/ is having some issues with showing entire posts on specific blogs. It's built in a child theme using the thematic framework.

    The posts on the home page and student blog only show an excerpt and no images. They should look like the posts on the upcoming events page. Each blog needs to show posts from a specific category only.

    Here is the snippet of php for the upcoming events page:

    <?php
    $wp_query = new WP_Query();
    $wp_query->query( array( 'cat' => '-246', 'posts_per_page' => 10, 'paged' => $paged ) );
    $more = 0;
    ?>

    Here is the snippet of php for the student blog page:

    <?php
    $wp_query = new WP_Query();
    $wp_query->query( array( 'cat' => '246', 'posts_per_page' => 10, 'paged' => $paged ) );
    $more = 0;
    ?>

    Here is the snippet of php for the home page:

    <?php
    $wp_query = new WP_Query();
    $wp_query->query( array( 'posts_per_page' => 10, 'paged' => $paged ) );
    $more = 0;
    ?>

    I'm not sure if you can solve much with this info but I can supply more if needed. Any help is greatly appreciated!

    Thank you

    Posted 3 years ago #
  2. middlesister
    Member

    You need to filter thematic_content to tell it not to use excerpts on the pages you want.

    function childtheme_filter_content($content) {
    	if (is_home() || is_front_page()) {
    		$content= 'full';
    	}
    	return $content;
    }
    add_action('thematic_content','childtheme_filter_content');

    Add this to your child theme's functions.php. Change the conditional to match whichever page you are targeting.

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.