Viewing 1 replies (of 1 total)
  • Easiest way is create in your template files like:
    archive-xxx.php
    single-xxx.php
    where xxx its name of your custom posts(CPT-Onomies).

    In archive you may put invocation of other template code and in content:

    <?php
    
    global $cpt_onomy;
    $terms = get_terms( 'xxx' );
    if ( !empty( $terms ) ) {
       echo '<ul>';
       foreach ( $terms as $term ) {
          echo '<li><a href="' . $cpt_onomy->get_term_link( $term, $term->taxonomy ) . '">' . $term->name . '</a></li>';
       }
       echo '</ul>';
    }
    
    ?>

    In single, you dont need any changes..
    Read documentation for more informations: https://wpdreamer.com/plugins/cpt-onomies/documentation/

Viewing 1 replies (of 1 total)
  • The topic ‘quick tutorial for beginner’ is closed to new replies.