Divi WordPress Theme
  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


    list Terms with order by, by tallerwp


    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; ?>
    <?php } ?>

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

    while ( have_posts() ) :


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

    list Terms with order by

Share This Page

Monarch Social Sharing Plugin