WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Excerpts on page template (4 posts)

  1. CallMeAndy
    Member
    Posted 1 year 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
        $args=array(
        //    '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.
    Cheers,

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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