Viewing 1 replies (of 1 total)
  • sgate1

    (@sgate1)

    I am not sure if you figured it out yet but it would be like this. You need to look into the database and in the table wp_term_taxonomy the the termID could be different then 51. Once you have that then you replace 51 with your value. This just grabs the quotes but doesn’t loop and output them.

    $termID = 51;
            // run query
            $query=query_posts(array(
                    'post_type' => 'perfect-quotes',
                    'showposts' => -1,
                    'tax_query' => array(
                        array(
                            'taxonomy' => 'perfect_quotes_category',
                            'terms' => $termID,
                            'field' => 'term_id',
                        )
                    ),
                    'orderby' => 'title',
                    'order' => 'ASC' )
            );
Viewing 1 replies (of 1 total)
  • The topic ‘How can Perfect Quotes be added to post and page templates?’ is closed to new replies.