GeoDirectory SupportList Places that has special field – GeoDirectory Support https://wpgeodirectory.com/support/topic/list-places-that-has-special-field/feed Mon, 29 Dec 2025 02:47:40 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/list-places-that-has-special-field/#post-53299 <![CDATA[List Places that has special field]]> https://wpgeodirectory.com/support/topic/list-places-that-has-special-field/#post-53299 Tue, 15 Sep 2015 21:45:30 +0000 nott80 At the moment, you can list specifically places that has Special Offer. Say i were to add a new custom field named Job Offer, how do i display only places that have that field filled in?

Can i do it from the widget as well?

Thanks in advance

]]>
https://wpgeodirectory.com/support/topic/list-places-that-has-special-field/#post-53345 <![CDATA[Reply To: List Places that has special field]]> https://wpgeodirectory.com/support/topic/list-places-that-has-special-field/#post-53345 Wed, 16 Sep 2015 15:51:03 +0000 Paolo HI,

no that is not possible. Custom fields cannot be used in widgets like that. The only way would be to rename Special Offer to Job Offer.

Thanks

]]>
https://wpgeodirectory.com/support/topic/list-places-that-has-special-field/#post-53399 <![CDATA[Reply To: List Places that has special field]]> https://wpgeodirectory.com/support/topic/list-places-that-has-special-field/#post-53399 Thu, 17 Sep 2015 04:07:56 +0000 nott80 Hi Paolo,

The idea is to have Special Offer and Job Offer for Places and then display it separately in homepage. It may not have to be using widget. I know how wordpress hooks and filter work so perhaps you can point me any geodirectory hooks to display info for custom field.

Thanks

]]>
https://wpgeodirectory.com/support/topic/list-places-that-has-special-field/#post-53466 <![CDATA[Reply To: List Places that has special field]]> https://wpgeodirectory.com/support/topic/list-places-that-has-special-field/#post-53466 Thu, 17 Sep 2015 19:00:25 +0000 Paolo Hi,

I don’t think there is hook to add a custom sorting for the popular post widget.

The quick and dirty solution that comes to my mind would be to copy the widget class from geodirectory-widgets/geodirectory_popular_widget.php line 127 and paste it in your theme functions.php file.

Rename the class (class name, function and constructor) and extend it to create an update proof customized widget, then register the new widget.

You could also unregister the orginal widget to avoid having 2 of them.

Unfortunately I’m not the most qualified to suggest this kind of customizations, so I’ll ask to Stiofan to suggest any alternative solution.

Thanks for your patience,

]]>