Skip Navigation

[Resolved] Legacy View doesn't display content template in wpv-no-items-found

This support ticket is created 2 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

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 0.23 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 6 replies, has 2 voices.

Last updated by umbertoZ 2 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2336817

Hi, I've an Archive template for Blog Posts where I'm not using the Archive loop, but I've included a Legacy View.

The view has a grid where the first item is filled by a Content template to display the list of categories and the rest of items are the loop of Posts displayed by a content template. The wpv-no-items-found includes the same grid, but, instead of the loop content template, a "No reuslts" text.

The view works fine, but if there are no results, the category list's Content template doesn't display anything.

#2336881

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share one test example link for which there is no content available and it should call the no items found block.

#2336983

Hi Minesh,

This is the archive with results:
/actualitat/

This is the archive without results:
/category/publicacions/

This is the view:
/wp-admin/admin.php?page=views-editor&view_id=11167

thanks

#2337001

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you see it now? hidden link

It seems there could be a cache issue, as soon as I typed some dummy text to no items found section of view ID 11167 and saved it and then reload the category archive page above, it's displaying the output.

#2341407

Hi Minesh, the issue is not fixed. Please, check it again.

What you have seen was a test I've done including the category menu view directly inside no items found section, but it still doesn't display the [wpv-post-body view_template="category-menu"] content template.

cheers

#2341849

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

When you are using Toolset Blocks we advise to not use nested views, content templates as it will offer undesirable results.

In this case when you add the content template to no items found section, when you add content template it looses the contact of archive as you are using other third party blocks as well.
- hidden link

The only solution to this as of now is to use the view you added to content template, you should directly add it to no items found section. I've just added the view to no items found section instead of content template and I see its working as expected.

[wpv-view name="blog-menu-categorias" archive="[wpv-taxonomy-slug]"]
#2341963

My issue is resolved now.

Thank you!