WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
Inserting Taxonomies into Templates (3 posts)

  1. John
    Member
    Posted 1 year ago #

    Good Evening,

    I'm looking for the taxonomy function which would allow me to push taxonomies from this plugin into my page template, like we would with the_tags( ) function in the standard WordPress codex; however, I cannot find any documentation referring to the this function.

    Thanks for any feedback.

    https://wordpress.org/plugins/types/

  2. John
    Member
    Posted 1 year ago #

    Found the solution through WP codex "get_the_term_list()", however, on my site, the taxonomies link to nothing. Am I on the hook to write these taxonomy pages?

    <?php echo get_the_term_list( $post->ID, 'taxonomy-slug','before text','separator text','after text') ?>

  3. Adriano Ferreira
    Member
    Plugin Author

    Posted 11 months ago #

    Dear jpmizell,

    I would recommend wp_list_categories: http://codex.wordpress.org/Template_Tags/wp_list_categories

    See an example below:

    <ul>
    <?php wp_list_categories('orderby=name&show_count=1&taxonomy=slug'); ?>
    </ul>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic