I am struggling trying to get the dynamic title from the listing_category taxonomy - As seen on the demosite here Design & Graphics – TaskHive
I have redesigned the header section to fit more with the overall style of my site, and now I need to display the listing-category name dynamically, depending on the current selected category.
When I try to insert the listing-category-header.php with the get_template_part function, I get an error.
Any suggestions how to get it to work - I might have the wrong approach all together.
( ! ) Fatal error: Uncaught Error: Call to a member function get_item_count() on null in public\wp-content\plugins\hivepress\templates\listing-category\view\listing-category-item-count.php on line 5
( ! ) Error: Call to a member function get_item_count() on null in public\wp-content\plugins\hivepress\templates\listing-category\view\listing-category-item-count.php on line 5
Thanks a bunch. I am very early in learning to code, so I get it that the information havent been gathered yet, and im trying to echo something that hasnt been prepared.
I did the same with the view of single blog post, but then it worked. (Get the post-header.php), but then I guess the information was available from some core WordPress code.
It should work this way for the Tag pages by default, here’s an example writing – JobHive If you mean filtering by tags they are not displayed because in search context there may be multiple filters (e.g. category, custom attribute filters) so there’s no page title.