Support » Themes and Templates » Excerpts on page template

  • Resolved CallMeAndy


    Have a problem populating a page of taxonomy posts, I wonder if someone can help.

    Using this method to get the posts where $taxonomy == ‘localities’ works in terms of correct posts being returned however it wont return excerpts at all.
    Not sure if its related or points to something I have done wrong in setting up the Taxonomy but using the tax_query method fail to find any posts!

    $paged = true by the way, though have tried false as well in case I had misinterpreted.

    Select all
        //    'tax_query' => array(
        //        array('taxonomy' => $taxonomy,
        //            'field' => 'name',
        //            'terms' => $local_name,
        //        )
        //    ),
            'localities' => $local_name,
            'post_type'     =>    'post',
            'post_status' =>    'publish',
            'posts_per_page' => -1,
            'caller_get_posts'=> 1,
            'paged' => $paged,
        $temp = $wp_query;
        //$wp_query = null;
        $wp_query = new WP_Query($args);

    Any thoughts would be much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael


    Forum Moderator

    what code are you using to show the excerpts?

    you could use the pastebin to share the full code of the template.

    Well in fact whether excerpt or full post is handled by the theme (Suffusion), and perhaps wrongly I had thought that the paged variable provided the instruction to the theme. I say that because on all the other pages this seems to work.

    I spent some time going through the theme code itself and could not see the answer guess I will just have to delve a bit more throuroughly.

    Not sure what the details were no as too many things going on. But primarily it revolved around my understanding of what should be expected in each template.
    Problem is resolved now in any case.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Excerpts on page template’ is closed to new replies.