GeoDirectory SupportDisplaying the Advertise Widget Only on Free Accounts – GeoDirectory Support https://wpgeodirectory.com/support/topic/displaying-the-advertise-widget-only-on-free-accounts/feed Mon, 19 Jan 2026 13:36:29 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/displaying-the-advertise-widget-only-on-free-accounts/#post-31071 <![CDATA[Displaying the Advertise Widget Only on Free Accounts]]> https://wpgeodirectory.com/support/topic/displaying-the-advertise-widget-only-on-free-accounts/#post-31071 Mon, 16 Feb 2015 17:28:20 +0000 headway Is there any way to have the Advertise widget only displayed for free accounts? So if a user upgrades an account, they no longer have advertisements on their profile.

Thanks.

]]>
https://wpgeodirectory.com/support/topic/displaying-the-advertise-widget-only-on-free-accounts/#post-31112 <![CDATA[Reply To: Displaying the Advertise Widget Only on Free Accounts]]> https://wpgeodirectory.com/support/topic/displaying-the-advertise-widget-only-on-free-accounts/#post-31112 Mon, 16 Feb 2015 20:58:38 +0000 Simone Hello, download a plug called Widget Logic (here), once installed you’ll find an option in the widgets you have. Drag the desired widget into your desired area, and add the following code in the widget logic field:

geodir_get_post_package_info_on_listing('', '', 'gd_place')->pid=="1"

change gd_place to whatever is your post type, and change the “1” to the ID of the price package you want to display the widget. You can see this ID in the Price tab, Package ID column.

Tested on my demo site and working, let me know 🙂

]]>
https://wpgeodirectory.com/support/topic/displaying-the-advertise-widget-only-on-free-accounts/#post-31298 <![CDATA[Reply To: Displaying the Advertise Widget Only on Free Accounts]]> https://wpgeodirectory.com/support/topic/displaying-the-advertise-widget-only-on-free-accounts/#post-31298 Wed, 18 Feb 2015 18:56:18 +0000 headway I used the code you supplied as is (my category is gd_place and the free package is also ID 1), but the widget is still displaying for all packages.

]]>
https://wpgeodirectory.com/support/topic/displaying-the-advertise-widget-only-on-free-accounts/#post-31308 <![CDATA[Reply To: Displaying the Advertise Widget Only on Free Accounts]]> https://wpgeodirectory.com/support/topic/displaying-the-advertise-widget-only-on-free-accounts/#post-31308 Wed, 18 Feb 2015 21:18:24 +0000 Simone Use the following code:


global $post, $wp_query, $geodirectory;
return $post->package_id=="1";

where 1 is the free package

]]>
https://wpgeodirectory.com/support/topic/displaying-the-advertise-widget-only-on-free-accounts/#post-31333 <![CDATA[Reply To: Displaying the Advertise Widget Only on Free Accounts]]> https://wpgeodirectory.com/support/topic/displaying-the-advertise-widget-only-on-free-accounts/#post-31333 Wed, 18 Feb 2015 23:21:53 +0000 headway Perfect. Thank you.

]]>