By default hide_empty
is true
for get_terms. So i guess you must be missing terms which do not have posts. Try this,
<?php $terms = get_terms("autorzy", array('orderby' => 'count', 'order' => 'DESC','hide_empty'=>0 ));
$count = count($terms);
if ( $count > 0 ){
echo "<div>";
foreach ( $terms as $term ) { ?>
<?php echo $term->name; ?>
<a href="https://wordpress.stackexchange.com/questions/139869/<?php get_term_link( $term ); ?>" class="avatar-link"></a>
<?php echo term_description( $term->term_id, 'autorzy' ) ?>
<?php } echo "</div>"; } ?>
Related Posts:
- Get Terms by IDs with IDs order
- When/why does ‘$query->get( ‘tax_query’ );’ return empty?
- wordpress query – orderby child post date
- Query by one meta_key and sort by another (possibly NULL value)
- Search Terms – Querying on either description__like OR name__like in the same Term Query?
- Query set using tax_query with relation ‘OR’ modifies category object?
- Insert html after certain amount of posts?
- Filter query posts by the count of metas for a meta key
- How to count get_users query?
- can’t get query to order posts by acf datepicker
- Custom query to get terms from post ids
- mySQL query. ORDER BY meta_key
- Order query by post meta value
- Order posts by custom field DATE value
- Ordering by a metadata subfield in WordPress?
- wpdb->term_taxonomy count posts from both published and private posts?
- Post with certain term and without any term
- Order by title – but now built in wordpress func, sort the_title
- Order posts by date, but also give priority for a specific term
- Querying with WP query using meta key price
- How to manage a particular “order by” for get_search_query()?
- How can I get the name of term post meta value which equals term id
- Sort query_terms_list for post_tags alphabetically
- JetEngine Query Builder – order by value from repeater
- Order posts ascending from posts in array
- wp query multiple values > display a specific value first
- Order WordPress Query by Custom Field While Still Using Tax_query Argument
- “order” does not affect order of custom query
- Query Posts that have or don’t have a meta_value and order by the same ASC
- No results for taxonomy archive page
- Multiple terms not working on taxonomy
- Apply ordering args to newly merged queried
- WP_Query orderby meta key/value suddely stopped working
- Order taxonomy terms by the frequency of use in the last 30 days
- Ascending & descending posts on same page with IF statement
- How to display SQL query that ran in query?
- How can I create a meta_query with an array as meta_field?
- Query multiple meta key values?
- How to Optimize WP site for millions of posts
- Retrieve posts by term id custom query
- Return only Count from a wp_query request?
- Count & Display Database Queries
- How to get comments by post ID?
- Differences between wpdb->get_results() and wpdb->query()
- Order get_terms using a Custom Field
- Is there a way of increasing the speed of this query?
- Get all image from single page using this query
- How can I query all users who registered today?
- Sort posts by Date (DESC) and by Title (ASC)
- Reversing the order of posts AFTER the query is performed
- Order get_terms() By Custom Field
- what are the numbers between curly brackets in search query
- simple sql query on wp_postmeta very slow
- Using WordPress public query variables
- How to Use Wildcards in $wpdb Queries Using $wpdb->get_results & $wpdb->prepare?
- How to get link and title of next and previous post on single page
- Create pagination and order according to alphabet
- wpdb get posts by taxonomy SQL
- How to List Events by Year and Month Using Advanced Custom Fields?
- Is there any difference between hooks posts_where with posts_join and posts_search performance wise?
- Custom WP_Query order by post_meta and (author) user_meta
- How many WordPress SQL Queries per page?
- How to display Section for certain time
- Add multiple value to a query variable in WordPress
- Search custom post type by meta data
- Custom query_var causes displaying posts archive on front page
- Slow wp_enqueue_media()
- Multipart/formatted MySQL query problem
- What is the most efficient way of implementing a favorite post system?
- Count posts that have specific taxonomy term attached
- Remove [gallery] shortcode altogether
- Compare two numeric custom fields
- wp_dropdown_categories with multiple select
- Advanced Custom Fields – Query Efficiency
- Query posts from current year
- Why does get_the_time(‘F j’) return November 30 for all posts?
- How to tune search argument in WP_Query to show only exactly the same results?
- WP_Query ordered by custom field that is a date string?
- Custom query filter not working on woocommerce category page
- How to delete a transient on post/page publish?
- Very slow query
- query multiple taxonomy and show post count
- How to find objects by terms
- Query & Sort Comments by custom comment meta
- Order posts by tags count?
- How to update incorrect post count in taxonomy?
- How to get my loop to pull posts into three columns
- How to display lastest post date in the homepage?
- Custom $wpdb Query for Custom Post Type by Category
- Get a user’s most recent post title
- Categories and products in random order
- Custom Search | Wrong output & question
- add_query_arg() XSS Vulnerability
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- Count user posts by user ID, Post type and Post status
- Can’t pass table to $wpdb->prepare
- $query->query_var[‘post_type’] not set for pages
- is_archive() doesn’t work on public query var archive pages?
- Display Custom Taxonomy Terns ordered by meta_value
- How to extract all ID variables from a query string?