Skip Navigation

[Resolved] View doesn't work

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.

Our next available supporter will start replying to tickets in about 2.68 hours from now. Thank you for your understanding.

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 suzyo 3 months, 2 weeks ago.

Assisted by: Nigel.

Author
Posts
#2713659
toolset-image.jpg

hidden link

Arrrgh, I'm an idiot. I've got at least 10 of these views up and working, but this one doesn't.

Can you take a look and help me?

Minesh tried but gave up. Insisted it was a plugin conflict, but it's not.

Can you help? Thank you.

#2716741

Nigel
Supporter

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

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

Hi Suzy

Looking at your site I see the View in question on that page is "Search Shops by Region".

It looks like that was last edited 7 Aug, I'm not sure when the problem started.

Anyway, it appears that it is not working because of this Query Filter:

"Shop Types the same as the page where this View is shown".

The page "Shops" where the View is inserted doesn't have any "Shop Types" term assigned (I don't think the taxonomy is available to pages), so that Query Filter doesn't seem to make much sense.

Having done that it still isn't returning any results.

I activated the debug mode for Views (at Toolset > Settings > Front end content) to examine the queries, which look normal, and the query results show several shop posts being returned by the SQL query that interrogates the database ("Wool Worth", "Willow", "Wicked Fireworks", etc.).

But these results are not available to Views to output.

It looks like some code may be running which uses the wpv_filter_view_post_process hook to manipulate the results.

Indeed, when I check the functions.php file I see you have code to not display any results until a search term is applied, which explains why I don't initially see the expected shop posts.

And once I select a region the page updates with shop results, so it looks like this is now working as expected?

#2717266
Screen Shot 2024-08-13 at 4.12.34 PM.png

Fantastic, Nigel! I've added the TYPES box, but it doesn't work.

Thanks!

#2717641

Nigel
Supporter

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

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

Screenshot 2024-08-14 at 07.45.50.png

The filter is for a taxonomy "summer-camp-type", but that taxonomy is not assigned to Shop posts.

#2719114
Screen Shot 2024-08-15 at 4.54.34 PM.png

Well of course summer camp types is the wrong tax. I've got the tax of shop-types. How do I fix this? Thank you, Nigel.

#2719834

Nigel
Supporter

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

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

If you have inserted a filter for the wrong field you would need to delete it, then insert the correct one.

So, go down to the Search and Pagination editor of the View and locate the markup and shortcodes for that taxonomy filter and delete them. Then use the New Filter button to insert a filter for the intended taxonomy.

#2720080

Thank you, thank you, thank you, Nigel! All fixed!