I want to show the top / most viewed taxonomy in last 24 hrs.

URLS are like
In admin: http://domain.com/wp-admin/edit-tags.php?taxonomy=store&post_type=coupon_type

On live site: http://domain.com/store/merchant-name

Currently using this code to show taxonomy

  <?php // taxonomies
  $id = get_the_ID();
  foreach ( get_object_taxonomies( get_post_type($id) ) as $taxonomy ) {
    $terms_list = get_the_term_list( $id, $taxonomy, '', '<span class="tax-sep">'.__( ',    ', 'twentytwelve' ).'</span>','' );
    if ( $terms_list ) 
     {
          echo $terms_list;
     }
    }
?>

Read more here: How to show the Most Viewed Taxonomy in 24 hrs (WordPress)


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: