"No Records Found" in Location View

This topic contains 17 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #529477

    Andreas Putlitz
    Full Member
    Post count: 50

    Hi! I imported data per CSV, which seems to have worked fine. The listings are online.

    However, in the “locations” view, I get an “no records found” error. When I open any category, it works fine. Screenshots below.

    The URL is:
    http://test.innovationsmelder.de/

    #529482

    Kor
    Moderator
    Post count: 16516

    hi Andreas Putlitz,

    Thanks for your post. There could be an issue with your permalinks and could you try the method on this article and see if it helps?

    https://wpgeodirectory.com/docs-v2/geodirectory/settings/permalinks/

    #529936

    Andreas Putlitz
    Full Member
    Post count: 50

    Hi Kor,

    thanks you for the prompt reply!

    Yes, I had checked the permalinks already. I have tried to change and reset them properly as well, with no effect.

    Another idea:

    The import table of the data had two additional columns at the very end which I would like to retain, because it allows me to link the records to our main database. Might that be a problem?

    Do the columns in the import table have to be in the exact same order as in the export tables? This might be a problem, because in the export tables the columns were in slightly different order for the different CPTs.

    #529963

    Kor
    Moderator
    Post count: 16516

    Hi Andreas,

    Thanks for your reply. Kindly share your Website WP admin access here in private reply and we’ll troubleshoot this further for you.

    #530034

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    when using the GD importer, yes, the column order must match.

    I recommend you check out this doc and try again.

    https://wpgeodirectory.com/docs-v2/geodirectory/settings/import-export/#recommended

    #530279

    Andreas Putlitz
    Full Member
    Post count: 50

    Ok, I figured out the problem.

    Steps I performed:

    (1) Export all the data and check the status of the tables

    => All looks fine. No messed up data. Apparently, the system will drop all the tables from the import data it doesn’t recognize, and is able to identify the correct columns for the values, even if they are not in the right order. At least for me it was the case.

    (2) Nevertheless, I trashed all the data except the test-CPTs.

    => No change

    (3) Trash test-CPTs and re-add test-CPTs manually.

    => No change

    (4) Then I added one listing in your default CPT “places” and that’s when the location view started working. Apparently, it only recognizes the default CPT “places”.

    This seems to be in line with the problem I have already posted here:
    https://wpgeodirectory.com/support/topic/show-all-cpts-in-location-page/

    This user has run into the same issue:
    https://wpgeodirectory.com/support/topic/custom-post-type-configuration/

    So, the issue seems to be, that GeoDirectory doesn’t show ALL the existing categories and CPTs in the location view. I only and exclusively shows the first CPT that is available on the site.

    The question is then: How do I get the system to include ALL existing CPTs and categories in the location view?

    #530287

    Andreas Putlitz
    Full Member
    Post count: 50

    I tried to post a reply, but I can’t see it. When I try to post it again, it says “It seems like you already said that.”

    #530320

    Alex Rollin
    Moderator
    Post count: 27815

    Post recovered.

    Did you add columns as a custom field? You can add a field like ‘tracker_id’ and that can be managed as a field with GeoDirectory.

    I missed the point of clarification: Did you use the GD importer? If not how did you import the listings.

    #530325

    Alex Rollin
    Moderator
    Post count: 27815

    Please share WP Admin credentials and a link to the location page so we can check on the issue.

    #531164

    Andreas Putlitz
    Full Member
    Post count: 50

    Yes, I used the GD importer. Sorry for being unclear. Also, I meant before, the system seems to drop all the columns it doesn’t recognize.

    #531165

    Andreas Putlitz
    Full Member
    Post count: 50
    This reply has been marked as private.
    #531284

    Alex Rollin
    Moderator
    Post count: 27815

    It looks like you hadn’t quite finished setup of the location page.

    Add GD Listings blocks for each of the CPTs you want to feature there.

    #531537

    Andreas Putlitz
    Full Member
    Post count: 50

    I am not sure, if I understand.

    When I open the “Location Page”, there are three blocks for the “GD > Listings” widget: “Initiatives”, “Events”, and “Spaces”. Each shows a list of listings below the listima categories on the location page.

    However, the map only shows one listing, the one from the very first CPT “Places”. The three other CPTs “Initiatives”, “Events”, and “Spaces” are not displayed in the map – even through they have a Listings Widget with the according filter setting on the page.

    #531692

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    On the location page you may want to use a full width page template where you can adjust the map.

    The map shortcode must be a directory map, and it will have a post type switcher so you can switch between the different CPTs.

    Try a full width template, or contact the theme author for instructions about how to adjust the map template.

    #531734

    Andreas Putlitz
    Full Member
    Post count: 50

    Yes, I know. The “standard” layout allows to switch between post types.

    The question is if there is a way to have the map display all post types at once?

Viewing 15 posts - 1 through 15 (of 18 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount