Quantcast
Viewing all articles
Browse latest Browse all 5

Answer by bueltge for Loop through custom taxonomies and display posts

Please check this example; create a own loop for your taxonomie. You can also use this in a foreach-loop to use all categories. Or you must create an own sql-query.

<?php$taxonomies = get_the_term_list($post->ID, 'YOUR_TAXONOMIE', '', '', '');$taxonomies = explode('>', $taxonomies);$taxonomies = $taxonomies[1];$myq = new WP_Query('your_taxonomie = '.$taxonomies); if ($myq->have_posts()) : while ($myq->have_posts()) : $myq->the_post(); // the loop ?><?php the_title();?><?php the_content();?><?php endwhile; else:?><?php endif;?>

Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>