Skip Navigation

[Resolved] View not showing custom post in category

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 6 replies, has 2 voices.

Last updated by Nigel 11 months, 3 weeks ago.

Assisted by: Nigel.

Author
Posts
#2668473

Hi! In my travel agency site I have a custom post called Tour, to display the info of every tour in the site. The tours have 2 custom categories, Destino (destiny, for continentes and counties) and Experiencias (experiences, for the type of travel each tour are). In the main menu I have a link (Destinos - Destinys) to navigate through the tours organized by continent first, and when you click in one of the continents you can navigate through countries. When you click in one country it shows the list of tours in that country.

For the countries list I am using a view called "Tours sub-destinos" inside a Divi Theme Builder custom template. It's working fine, but I'm having issues with 3 countries:

- africa>Isla reunión hidden link
- asia>omán hidden link
- asia>tibet hidden link

When you navigate to these countries, the view throws the message "Ups! no hay destinos que mostrar" - No destinys to show, it's the message I set up in the view when there's no matching records in the filter, but all these countries have tour in its destiny. The URLs of these tours are the following:

hidden link
hidden link
hidden link

The last tour issue is really weird because it's assigned to Nepal and Tibet countries, when you navigate via Nepal it shows off in the view but when you go to Tibet there's no tours listed. Hope you can help me, thanks in advance

#2668539

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hola Javier

Could I take a closer look at your site to see exactly how you have this set up?

It will be easier for me to see what's going on if I can check the back end and the details of the Views used.

Let me mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

#2668887

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

OK, thanks for that.

I see the problem. It should be possible to use the Views debug mode to get details of the exact queries being generated by the View, but for some reason the debug mode is not reporting details of the tours sub-destinos View, so I can't readily see what the issue is.

I need to dig a little deeper.

Do you have a staging site I could work on? I would need to enable the WordPress debug log and write a little PHP for testing, but I don't want to do that on your live site.

Let me set another private reply in case you can share credentials for a staging server.

#2668921

Thank you Nigel, the site is really huge, I'm going to try to duplicate it without the /uploads folder in a staging site and see if you can handle with the error without it or upload partially. I'll write you when the site is ready

#2670697

Hi Nigel, I have a working copy of the site in another server. I have it working without the /uploads folder, if you need it I can upload it for you. As I assume this is not a private post, I'm not writing the loging information to your temporal account

#2670707

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

OK, great. I've set another private reply to get the credentials for the staging server from you.

#2670961

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2023-12-05 at 07.49.31.png

I think it is something simple in the Divi theme builder settings.

The problem pages are not set to use the relevant Divi template.

In the screenshot you can see Isla Reunión, but Oman and Tibet are also not set to use that template.

#2671003

Oh, I can't believe that's the error. I've been working around the view, the destinos set correctly to the tours and all the Toolset stuff and I forgot to check the template. Sorry and thanks for your time Nigel, it's working now.