Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix list Terms with order by

Discussion in 'Misc WordPress Requests' started by tallerwp, Oct 16, 2017.

  1. tallerwp

    Guest

    list Terms with order by, by tallerwp

    Hello,

    please, If I have this code. How can order my termsby ID number?

    Thank you

    <div id=”” class=”filter clearfix”>
    <div class=”wrap”>
    <?php esc_html_e( ‘Todos’, ‘business-pro’ ); ?>
    <?php foreach ( $terms as $term ) : ?>
    slug ); ?>’><?php echo esc_html( $term->name ); ?>
    <?php endforeach; ?>
    </div>
    </div>
    <?php } ?>

    <?php if ( have_posts() ) { ?>
    <div class=””></div>
    <div class=””>
    <?php

    while ( have_posts() ) :

    the_post();

    $terms = get_the_terms( get_the_ID(), ‘portfolio’);

    list Terms with order by
     
    #1

Share This Page

Web Hosting