use words "select category" at the top of cpt dropdown

This topic contains 9 replies, has 3 voices, and was last updated by  Paolo 7 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #351444

    Kyle Palla
    Buyer
    Post count: 6

    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

    #351447

    Guust
    Moderator
    Post count: 29970

    The 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/#cat

    Changing the CPT dropdown would require a customization.

    Thanks.

    #351448

    Kyle Palla
    Buyer
    Post count: 6
    This reply has been marked as private.
    #351455

    Kyle Palla
    Buyer
    Post count: 6

    OK – 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?

    #351467

    Guust
    Moderator
    Post count: 29970

    The default CPT on the location map is set at:
    GD > Design > Map > Default post type search on map

    None 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/#navigation

    Thanks

    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.

    #351491

    Kyle Palla
    Buyer
    Post count: 6

    I 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.

    #351494

    Guust
    Moderator
    Post count: 29970
    #351500

    Kyle Palla
    Buyer
    Post count: 6

    thanks 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

    #351503

    Guust
    Moderator
    Post count: 29970

    Mmmm, not sure it exists, we’ll need to ask the developers after the weekend.

    Is there a shortcode for GD > CPT Listings widget.

    #352010

    Paolo
    Site Admin
    Post count: 31206

    You can use the the_widget function instead: https://codex.wordpress.org/Function_Reference/the_widget
    Thanks

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket