Suppose we enlisted the composers
and the interprets
custom taxonomies.
The composers
scientific categorization could have the accompanying terms:
- Wolfgang Amadeus Mozart
- Ludwig van Beethoven
- Richard Wagner
The interprets
scientific classification could have the accompanying terms:
- Glenn Gould
- Daniel Barenboim
- Vienna State Opera
I am contemplating whether the WordPress layout pecking order has a unique document , like taxonomy-terms.php
, to list scientific classification terms with a basic loop:
<?php
while ( have_posts() ) : the_post();
the_title();
endwhile;
?>
This would print (expecting to be the /%postname%/
permalink setting):
Wolfgang Amadeus Mozart
,Ludwig van Beethoven
,Richard Wagner
when seeingexample.com/composers
Glenn Gould
,Daniel Barenboim
,Vienna State Opera
when seeingexample.com/interprets
If not, I might want to realize the most ideal approach to carry out this. I would make a page layout for every scientific classification, template-authors terms.php
and template-deciphers terms.php
and list terms utilizing something like the accompanying code:
<?php
/* Template Name: List of authors *//or 'Rundown of deciphers'
$terms = get_terms( 'authors' );/or get_terms( 'deciphers' )
foreach ( $terms as $term ) :
reverberation $term->name;
endforeach;
?>
Then, I make two pages, “Authors” and “Deciphers”, to which I individually doled out the “Rundown of arrangers” and “Rundown of deciphers” templates.
I’m not truly open to utilizing this strategy, since it requires making another record for each taxonomy.