Understanding CPT search and CPT synchronization in the different GD sections

This topic contains 10 replies, has 2 voices, and was last updated by  Guust 6 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #417736

    directoryfan
    Expired Member
    Post count: 157

    Hello Support Team and Community,

    please help me to understand how the CPT search is working with the supreme directory theme.

    When I call the homepage, the default CPT Places is loaded in each section: in the header search and header (featured) popular categories, on the OSM map, in the content section (popular places) or in the sidebar section(latest places).

    When I change the CPT in the search of the home page to Events, then just the header popular categories will change automatically to the popular categories for Events. The CPT on the OSM map, in the content section (popular places) or in the sidebar section(latest places) does not automatically change. In my opinion when the CPT is changed, then the CPT should be automatically updated in all the sections of the website, otherwise this would be very confusing for users and visitors.

    Is this the normal behaviour of Supreme Directory theme or do I miss some options?

    Greetings, Marius

    #417738

    Guust
    Moderator
    Post count: 29970

    Hi Marius, changing CPT will take effect for the page only.
    It sounds like you are using a GD Home Map widget on the Search and Listings pages, instead of a GD Listings Map widget.
    Popular Places widget will change to the current CPT if you tick “Use current viewing post type:” in the widget settings: https://wpgeodirectory.com/docs/widgets/#popular-post

    Thanks

    #417752

    directoryfan
    Expired Member
    Post count: 157

    Hi Guust and thank you for your attention.

    I’m talking just about the homepage. The widgets are the right ones in the homepage sections.

    1. call the homepage
    2. change in the header search just the CPT from Places to Events, without searching for a word or location
    3. this will automatically update the featured popular categories section below the header search on the homepage but not the content of the following widgets: map, popular places, latest places – all on the homepage.
    4. even if I manually change the CPT on the map widget to Events, the content of popular places and latest places on the homepage will not automatically update. (both widgets have the option “Use current viewing post type:” ticked.

    #417755

    directoryfan
    Expired Member
    Post count: 157
    This reply has been marked as private.
    #417758

    Guust
    Moderator
    Post count: 29970

    Location and the GD home page are never CPT specific.
    The behavior on your home page is how it works by default.

    You can always add an extra Popular Post View widget for Events.

    Thanks

    #417764

    directoryfan
    Expired Member
    Post count: 157

    Thank you,

    OK, in this case I will add an extra Popular Post View widget for Events. But, :), is the usability for the GD home page and Location page the optimal one?

    1. When I change the CPT Places to Events in the header search, the Search widget does trigger the featured Popular Categories below the search and does update it to show the Events categories. Why not to have also the option to automatically update the map and the other widgets too? Is this not confusing? Or at least the map, since I can add the two other widgets for Events too. What about, when I have a lot of CPTs?

    2. Did anyone try to make the content of the widgets on the GD home page aware of the selected CPT in the header search?

    #417770

    Guust
    Moderator
    Post count: 29970

    1. That would make the page too slow to react.

    2. See above. The whole page would need to load listings in all CPTs in the background.

    Location pages can show a selected number of listings of each CPT on the page, and are designed to lead in to the listings for the selected location.
    That way a visitor narrows the location down first, and then the listings in that location.

    Thanks

    #418224

    directoryfan
    Expired Member
    Post count: 157

    Thank you Guust for your time and explanation, but please answer this question:

    1. Why does automatically change the Popular Categories under the search on the GD/Location Homepage? If someone is changing the CPT from Places to Events in the search and the Popular Categories get changed to Events too, but the map does not change to that CPT, is this not confusing for the users? (I see the new CPT Events and the updated Popular Categories, but still the Places on the map)

    I would like to make the map on GD Homepage aware of the CPT change in the search, how and where can I do this? (Please consider, that GD Directory can be used also for local directories with just some CPTs and not just for big global directories with a lot of CPTs.)

    And thank you for your hint, I will use more widgets for the CPT Events on the GD Homepage.

    Greetings, Marius

    #418227

    Guust
    Moderator
    Post count: 29970

    Because only those two widgets [Search and Popular Categories} are connected on that page.
    Those two widgets do not require any listings to be loaded, changing the map would require listings to be loaded. That would make the page too slow to react and load.

    I would like to make the map on GD Homepage aware of the CPT change in the search, how and where can I do this?
    That is not possible without reworking the whole plugin, and that would make the page too slow to react and load.

    Thanks

    #418244

    directoryfan
    Expired Member
    Post count: 157

    Thank you Guust and it is OK, I understand.

    In this case, I have to find a solution for the map. I don’t think that the visitors will intuitively change the CPT on the map. Maybe I’ll have to emphasize more the CPT menu on the map.

    Thanks again, Marius

    #418325

    Guust
    Moderator
    Post count: 29970

    Or make links to the CPT pages more obvious, for example with the CPT Listings widget: https://wpgeodirectory.com/docs/widgets/#cpt-listing

    Thanks

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

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

Open Support Ticket