use words "select category" at the top of cpt dropdown
This topic contains 9 replies, has 3 voices, and was last updated by Paolo 8 years, 8 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
January 29, 2017 at 12:38 am #351444
How can I put an instruction in the dropdown box of the cpt search box – instead of seeing a category they would see an empty box with the words “select category” in the box then clicking it would drop down with all the cpt choices. Thanks
January 29, 2017 at 12:53 am #351447The CPT list defaults to the CPT relevant to the page.
If you want a drop down for categories (not CPTs) review https://wpgeodirectory.com/docs/gd-search/#catChanging the CPT dropdown would require a customization.
Thanks.
January 29, 2017 at 1:08 am #351448This reply has been marked as private.January 29, 2017 at 1:40 am #351455OK – if there isn’t an easy fix like adding something in css – I have another question, the front page has an image with a search in it – when I change that search to home services from places it does not affect the map below which still shows places. And when I click on the home services below that map it changes the map but it doesn’t change the popular categories in the top part with the picture. Is there a way to make them talk to each other – or maybe go to a new home page showing that as the current cpt?
January 29, 2017 at 2:45 am #351467The default CPT on the location map is set at:
GD > Design > Map > Default post type search on mapNone of the widgets are interdependent, so they will not change content unless you go to another page, they do not talk to each other.
Every CPT has its own page.
/places/
/home-services/
etc
Add the CPT Listings or CPT Categories widget to link to the CPTs if you like, or add links to the menus:
https://wpgeodirectory.com/docs/widgets/#cpt-listing
https://wpgeodirectory.com/docs/widgets/#cpt-cats
https://wpgeodirectory.com/docs/core-design/#navigationThanks
You had not changed the order of CPTs as per https://wpgeodirectory.com/docs/gd-search/#cpt
On a location page or any standard WP page or post, the order of the CPTs in the selector can be determined by changing the order at GD > Custom Post Types > Choose a CPT > Advance Mode tab > Order in post type list (Custom Post Types addon required).
I changed both for you, please check now.
January 29, 2017 at 3:48 am #351491I like the listing widget – that seems to be a great compromise – I just need to upload some images into the cpts which will help identify them – now how do I trade that widget for the popular category widget in the home page image at the top – searched for a way – but there is no “popular category widget” in my home page top section – I think this section that uses the featured image is above the top section as I have the map and search widgets in the top section and they come up under main image. The placement of the image is fine I just want to disable popular categories – with the ability to re-enable them in the future. Thanks – and sorry have so many questions.
January 29, 2017 at 4:10 am #351494This should help with that:
https://wpgeodirectory.com/docs/faqs/how-do-i-remove-the-popular-categories-section-from-the-home-page/January 29, 2017 at 4:40 am #351500thanks again for your help – I found the php page and the shortcode
[gd_popular_post_category category_limit=5]
I’d like to trade it for the shortcode for the cpt listing widget above – but couldn’t find that on the core shortcodes page https://wpgeodirectory.com/docs/core-shortcodes/#ctp-cats please can you tell me the shortcode for the widget so that I can replace the popular category widget with the cpt listing widget. Thanks
January 29, 2017 at 4:52 am #351503Mmmm, not sure it exists, we’ll need to ask the developers after the weekend.
Is there a shortcode for GD > CPT Listings widget.
January 30, 2017 at 4:31 pm #352010You can use the the_widget function instead: https://codex.wordpress.org/Function_Reference/the_widget
Thanks -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket