GeoDirectory SupportNumber of Listings in Popular Categories – GeoDirectory Support https://wpgeodirectory.com/support/topic/number-of-listings-in-popular-categories/feed Wed, 18 Feb 2026 23:15:53 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/number-of-listings-in-popular-categories/#post-17574 <![CDATA[Number of Listings in Popular Categories]]> https://wpgeodirectory.com/support/topic/number-of-listings-in-popular-categories/#post-17574 Mon, 06 Oct 2014 05:20:41 +0000 laevents thanks for the great product, how may I hide number of the listings under categories, here is an example,

http://wpgeo.directory/hotels/

1 Star (2) 3 Stars (3) 4 Stars (3) 5 Stars (5) Hostel (2)

I would like to show it like,

1 Star 3 Stars 4 Stars 5 Stars Hostel

Please advise.

Thanks,

]]>
https://wpgeodirectory.com/support/topic/number-of-listings-in-popular-categories/#post-17588 <![CDATA[Reply To: Number of Listings in Popular Categories]]> https://wpgeodirectory.com/support/topic/number-of-listings-in-popular-categories/#post-17588 Mon, 06 Oct 2014 10:50:47 +0000 Guust Not sure that is possible.
The problem with that too is that you will get a lot of links that will go to empty pages once people browse to a location.
For example, see
http://wpgeo.directory/hotels/australia/new-south-wales/millers-point/

Imagine that the zeros would not be there, would be annoying for visitors?

]]>
https://wpgeodirectory.com/support/topic/number-of-listings-in-popular-categories/#post-17652 <![CDATA[Reply To: Number of Listings in Popular Categories]]> https://wpgeodirectory.com/support/topic/number-of-listings-in-popular-categories/#post-17652 Mon, 06 Oct 2014 21:16:42 +0000 Paolo To get rid of the number if you wish to do so anyway, you need to copy the entire widget function to create a new widget. From geodirectory/geodirectory-widgets/geodirectory_popular_widget.php from line 2 to line 140, paste it in your child theme functions.php, rename it and modify its code.

to remove the category count, go to line 70 and replace this:



echo ucwords( $cat->name ) . ' (<span class="geodir_term_class geodir_link_span geodir_category_class_' . $post_type . '_' . $cat->term_id . '" >' . $total_post . '</span>) ';

with this

echo ucwords( $cat->name );

Thx

]]>