Count of custom post types with specific custom field values?

[ad_1]

Hello!

Firstly, thank you for this great plugin!

I am attempting to display the count of a custom post type which has a specific custom field value.

I was wondering if this was possible via this plugin?

My custom post type would be ‘responses’

The custom field within the post would be ‘attending’

and the two custom field values would be ‘yes’ or ‘no’

I’d like to display the number of posts that are a ‘yes’ and the number of posts that are a ‘no’, individually.

If it is not possible, do you know if I can achieve this with a custom shortcode in my functions.php? I have been attempting this for a number of hours, with no luck so far.

Thank you in advance for any help!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer