You can use WP_Query
Methods and Properties to accomplish this. $wp_query->found_posts
will return the amount of posts within the term while $wp_query->queried_object->name
will return the name of the term currently displayed.
You can now just paste all these together to display
18 free resources
$taxcount = $wp_query->found_posts;
$taxname = $wp_query->queried_object->name;
printf(__( '%s %s resources' ), $taxcount, $taxname);
Modify as you wish to get the desired output and styling.
Note, this code should be added to your taxonomy template or archive template, depending on which template is been used to display the terms on
Related Posts:
- Display user’s total comment count outside The Loop
- WordPress custom taxonomy description for each post?
- How to find objects by terms
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- Display certain amount of posts on taxonomy archive page
- I want to remove the links from the term list returned by get_the_term_list
- Specific Loop For 2 Within Each
- How to change post count in wordpress loop?
- How do I get taxonomy terms by ID in a specific order
- PHP Customization: Taxonomies and Queries, why? [closed]
- Count number of published posts by type
- Display Post co-authored in Author Page
- Make first letter of my taxonomy uppercase
- conditional statement for custom taxonomy
- Get taxonomy terms only of the WP_Query current posts
- Rename “Portfolio” slug?
- Adding country tags automatically
- Custom page archive query by url var calling page twice on one of my custom queries?
- Taxonomy linked to pages
- Create a hierarchical taxonomy list in WordPress
- User’s total comment count excluding comments on their own posts
- get_the_tags() not iterating through for/while loop, but will with foreach
- Customising the search function?
- Add meta noindex to post if it has a specific taxonomy
- Loop through categories and display posts title under each dropdown
- Displaying Hierarchical custom taxonomy
- Get term siblings of current child taxonomy
- How to get post’s current parent term ID?
- Adding Taxonomy Image to taxonomy loop [closed]
- register_taxonomy() take much queries
- Way to bulk make all my tags lowercase?
- Category title output before opening title tag
- List taxonomy term slugs within shortcode (do_shortcode)
- Copy taxonomy terms from one post to another programmatically
- Hide image if taxonomy term is empty
- How can i count the post added in relationship field, theme display
- Isotope Drop Down Categories Filter Function
- How to filter custom taxonomy term name, slug, and description?
- Hierarchical taxonomy list with modificated term links
- Add class to website based on post taxonomy
- In WordPress, how do I get the number of posts next to single_cat_title(”); in the category.php file?
- How can I count ACF sub_field with a certain value
- Show the section only if custom taxonomy was chosen
- Exclude product attributes from taxonomy terms loop
- How to insert wp_users ->user login name to wp_terms when a new user registering?
- Change header on pages displaying taxonomy items
- WordPress site with embedded menu – gives You don’t have permission to access /wp-content/themes/xxx/taxonomy-redirect.php on this server
- How to get all the items of a taxonomy even if it does not have a custom post type?
- Filter unique custom field value based on custom taxonomy category or other custom field
- Trying to display terms from custom taxonomy within function
- WordPress Conditional / Multiple Taxonomy Query
- Hi need update in my terms for other taxonomy
- How to change the author box selection on a post to a custom taxonomy
- WordPress: Export/Import Yoast meta title & description to custom taxonomy
- Counting number of posts in multiple (sub)categories using shortcode
- Show related products by attribute based and certain conditions
- Display acf taxonomy attachment
- How to hide a child category and show his parent category
- How do I edit the terms output args or array data?
- update_term_meta() only updating once on certain meta keys
- ACF Taxonomy field values not select in backend
- Like and Dislike Buttons on Post with Counter – Only allow one click per post per user session
- How can I show how much water got saved on this order (making use of the number of items bought) on a thank-you-page?
- Multiple Tag Filtering
- ACF – Can’t get custom post type by taxonomy
- Search for single post by 2 tags
- Warning: count(): syntax problem of the count () function
- WordPress search query, how to modify the sql
- Permalink like example.com/taxonomy/post_type/postname
- Displaying child taxonomy before parent
- number of posts with “Load More”
- Get the total Author Favorited posts
- New term taxonomy and description in front page. Input’s
- How to associate dynamic PHP page for chosen WordPress tag?
- How to hide the Duplicate taxonomy values in WordPress?
- Display product attributes for current product
- For each 3 posts, show a different post type
- WP_Query count of different meta key values [duplicate]
- How to display terms from two taxonomies in one php code?
- divide custom field values in div every two values
- Custom Taxonomy as Link
- Change taxonomy for categories
- Select All not working in a WordPress search filter
- How to get the count for each taxonomy term
- Get all the contents of taxonomy and sort by term
- Query specific posts per user selections from dropdown menus
- ISOTOPE – Missing/Invalid Arguement Get Terms
- wordpress taxonomy in regular posts
- category & sub category order issues in wordpress
- How to add together (get the sum) a field from all author’s posts
- Is there a way of displaying related posts from lowest hyrachical order (lowest child category to parent category)
- Custom taxonomy with page post type – WordPress
- How to extract URLs from wordpress taxonomies
- Three different queries on same page
- Remove colon from CTP UI “Singular Label”
- Trying to add taxonomy terms to search results page
- WordPress taxonomy and terms question
- How to limit number of posts in the certain category and exclude the oldest post automatically
- Count the number of matching post names in foreach loop
- How to prevent XSS alter custom global javascript object & methods in WordPress