The easiest way is to just create conditional statements checking for the term and wrapping it in a div of your choice.
After you loop starts you could do something like:
while ($list_query->have_posts()) : $list_query->the_post();
if( has_term( 'casegoods', 'tag-series' ) ) {
echo '<div class="left-side">';
the_content();
echo '</div>';
} elseif ( has_term( 'casegoods', 'rugs' ) ) {
// do something else
} //..etc
Related Posts:
- Order posts with custom taxonomy array
- WP_Query to output chosen term and posts with no term assigned
- Output all terms in a custom taxonomy and add a “active” class only to the ones attached to the current post
- How to get posts that contain multiple terms from multiple taxonomies?
- Cannot delete or edit a single term in a custom taxonomy, taxonomy name is wrong?
- How to group all terms children’s in custom taxonomy?
- WP Job Manager plugin – Listing only the twelve job categories on frontpage order by jobs they have
- Display Posts by Custom Taxonomy Chosen Terms
- Show template part if part of term
- How to display a custom taxonomy without a link?
- one post per term taxonomy
- Build filter for post-type + multi taxonomies + multi terms
- How to check if a post has at least 2 terms from a custom taxonomy attached?
- How to print term name inside wp post loop
- How can I change the output display of my pagination?
- How do I get term data associated with the current post, where the result is not wrapped in HTML?
- Why does wp_remove_object_terms not work?
- How best to store data (URLs and IDs) extracted from posts and pages using custom taxonomies
- Can’t get taxonomy ID for each post on archive page
- wp_dropdown_categories – how to save in widget?
- how to get term id from current post type instead of name
- Hide terms if they aren’t the same as the current term
- echo a specific custom taxonomy term on a different custom taxonomy archive
- Display children category images
- Corrupted nav-menu?
- Get name of taxonomies of current page
- The best way to display taxonomies
- Dynamically set taxonomy term and show admin notice on post save
- Check if a post has term inside loop
- WP 4.8 : new taxonomy syntax for get_term_by and get_term_link ?
- Terms change id after importing
- Create alphabetical Pagination for custom taxonomy?
- List Top 5 taxonomy terms based on number of post
- delete term from taxonomy and assign in new one
- How to show post list based on taxonomy term?
- export and import taxonomy terms from one taxonomy to another
- Can you hide empty terms using get_term_children?
- save custom term – hook create_term doesn’t work
- get_term_by works but get_terms doesn’t?
- URL rewriting taxonomy term
- Display empty custom taxonomies differently than with one with posts
- Find terms in a custom taxonomy based on the hirearchy
- Double slash in the_terms URL
- How to call a custom taxonomy term name inside a function?
- How to show post for a particular term of custom taxonomy?
- How to add custom taxonomy terms to posts in bulk
- check if a taxnomy queried in $wp_query?
- How to get this value inside RETURN
- How to list Custom Taxonomy
- Hide echo of no categories from get_object_taxonomies
- How to add a date creation field when a custom taxonomy relationship is created?
- Taxonomy.php how to show post only in current taxonomy with wp_query?
- WP_Query tax_query – Show results if child has parent X
- Custom Taxonomy List with Children
- Query custom taxonomy for category including children
- List terms of custom taxonomy if matches other taxonomy
- Adding Child Terms Programatically – No Warning but No dice either
- Proper way to create taxonomy queries
- how to use tax_query to apply both terms or one if one is empty
- How to output taxonomy term (incl. link to archive) on author.php?
- Get current page term title to use in WP_Query
- why the archive of custom taxonomy term shows nothing?
- Show related posts on single.php, grouped by taxonomy terms, with Advanced Custom Field post object selected
- passing moree than one value of slugs in taxonomy using variable
- Show all terms in a custom taxonomy with all child terms wrapped in a ul
- Order taxonomy terms wordpress
- Show single Child Category on Custom Post
- Page for custom taxonomy
- Running a function only once when a taxonomy term is changed
- Unable to get the Parent Custom Taxonomy Terms
- How to get the term description in a taxonomy term archive query?
- Display Child Categories of Current Post ID
- Set post terms by term id
- Query for specific taxonomy that executes a particular loop depending on volume of posts?
- Unsetting post_tag taxonomy breaks term description for other taxonomies
- How to list terms by first letter, as in A’s then B’s etc
- Displaying my custom taxonomies in a using the_term_list()
- Use wp_list_categories to list parent categories from actual term
- Include get_term_link inside search
- Trash Bin for Categories?
- using wp_insert_term to create custom terms for a custom taxonomy from frontend form,
- is there a way of getting term children that only shows those from two taxonomies
- Pull data from MySQL and add it to terms
- Display term picture of each post in a loop
- Set two terms for a post when they differ only by an accent
- How can I show links for custom posts group by taxonomy current term and sub-term?
- How to use custom slug and custom templates for custom taxonomy?
- Get Terms of custom Taxonomy of products with certain Product Category
- display ACF repater field in archive page
- Problems using get_the_terms in a plugin
- How to add a shortcode function that returns the taxonomy slug of the actual post within the loop
- display post count in archive page that have relation with another taxonomy term
- How to list custom taxonomy terms alphabetically by last word
- Tree view wp-admin terms
- Retrieve the child terms by having the parent’s information
- Infinite Scroll appending Next Product Category Term pages
- add pagination in wordpress page template
- Get custom taxonomy terms that contain posts that have another taxonomy term
- Order get_terms by count using a custom taxonomy hierarchy
- Listing Cities A custom taxonmy by selection order