Map Only Listing Page

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

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

Open Support Ticket
  • Author
    Posts
  • #379020

    kairei
    Expired Member
    Post count: 78

    Is there a way to have the top level listing page for a CPT only show the map, potentially full screen, or with just “featured” listings?

    I have a class directory with a “class” CPT. On the /classes/[country], /classes/[country]/[region], and /classes/[country]/[region]/[city] pages I want to show all listings, which is what I’m currently doing. It is ok because each country will probably not have more than 30 or 40 listings. But the root /classes/ page will have 100+ listings which is probably too many. I know I can do paging but, long story, I’m overriding the default display and doing them in random order and paging+random was causing duplicates.

    So, I’m wondering if, on the /classes/ page only, can I do any of the following possible solutions?

    1. just show the map with no listings being queried/displayed (and maybe even ideally make the map start fullscreen)

    2. limit the number of listing results while leaving /classes/* pages to get all results, ideally making that limit based on some kind of flag like being a “featured” listing.

    Thanks!

    #379087

    Guust
    Moderator
    Post count: 29970

    I don’t think that is possible. You can create WP pages using the Listings map shortcode maybe?
    https://wpgeodirectory.com/docs/core-shortcodes/#listing

    #379139

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    Not without a customization.

    Thanks

    #379142

    kairei
    Expired Member
    Post count: 78

    Ok, thanks. I’m assuming customizations are outside the normal realm of standard support, but could you point me in the direction of generally how one might approach such a thing so I can look into it?

    Is there somewhere way I can plug in, have knowledge of if it is the top level listing page, and change the query e.g. to set page size to zero?

    Is there somewhere I can plug in to “auto-maximize” the map?

    Thanks!

    #379197

    Paolo
    Site Admin
    Post count: 31206

    I think with CSS everything can be done.

    You could hide everything but the map and also make the map full screen.

    Thanks

    #379624

    kairei
    Expired Member
    Post count: 78

    My biggest concern is to speed up the /classes/ page. I want all the markers on the map (i.e. all markers from all listings) but don’t want to query for and display all the listings below the map. It seems like on the GD homepage you can choose to display the widget with the listings or not but on the listings page it seems like that page just always shows the listings (there is no widget area for it)… is this right? Is there a way to plug in and tell the listings pages “don’t display the list” or “only display X listings?”

    #379729

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the CPT/categories pages are archives, so yes they always show the paginated listings.

    You can display X listings by changing the setting in Settings >> Reading >> Blog pages show at most. (of WordPress)

    That will also affect all other archives on your website, however I know that there are plugins that let you control number of posts for each CPT, so if you need you can use one of them…

    However the Map at that point will show the number of posts shown by the list below.

    The only other way to workaround this, is to modify the listing-listview.php template as explained here: https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

    Thanks

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

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

Open Support Ticket