Support » Plugin: Ultimate CMS » Display custom taxonomies

  • Resolved asdevargas

    (@asdevargas)


    Hi!

    This might be a dumb question, but how can I display my custom taxonomies?
    In the file where Tags and Categories Portfolio are display, I have:

    if($categories=get_the_term_list( get_the_ID(), 'portfolio_cat', '', ', ', '')) {
    $html .= '<div class="row categories"><strong>'.esc_attr__('Categories:', 'Twoot').'</strong>'.$categories.'</div>';
    }
    if($tags=get_the_term_list( get_the_ID(), 'portfolio_tag', '', ', ', '')) {
    $html .= '<div class="row tags"><strong>'.esc_attr__('Tags:', 'Twoot').'</strong>'.$tags.'</div>';
    }

    How can I add a custom taxonomie called “districts” for example?
    I’ve been playing around for a while, but always getting fatal error šŸ™

    Thank you in advance…!

    Anne-Sophie

    https://wordpress.org/plugins/ultimate-cms/

Viewing 1 replies (of 1 total)
  • Finally found it!

    if($tags=get_the_term_list( get_the_ID(), 'districts', '', ', ', '')) {
    $html .= '<div class="row tags"><strong>'.__('District:', 'Twoot').'</strong>'.$tags.'</div>';
    }

    šŸ™‚

Viewing 1 replies (of 1 total)
  • The topic ‘Display custom taxonomies’ is closed to new replies.