Post count on do action in header
-
Hi
To start, the plugin is amazing π
I have one question however, I want there to be the search options in the header, so used
<?php do_action('show_beautiful_filters', 'my_cpt'); ?>
Which shows the dropdowns – great
I also want to show the post count next to each option, so ticked the checkbox in admin.
Here is where my question lies. The counts show great on the actual job search and list page where the main search results are shown using
<?php do_action('show_beautiful_filters'); ?>
ad when on the job search page, the header post counts show up fine.
However when on any other page (such as homepage or contact page where the
<?php do_action('show_beautiful_filters'); ?>
isn’t) the post counts are all 0.Am I missing something?
Thanks
- The topic ‘Post count on do action in header’ is closed to new replies.