[resolved] Excerpts on page template (4 posts)

  1. CallMeAndy
    Posted 4 years ago #

    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.

  2. Michael
    Forum Moderator
    Posted 4 years ago #

    what code are you using to show the excerpts?

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

  3. CallMeAndy
    Posted 4 years ago #

    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.

  4. CallMeAndy
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic