Skip Navigation

[Resolved] View insterted into archive not displaying

This support ticket is created 4 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.

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

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by Shane 4 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#1575483

Hi folks, I've got a View that I've inserted into a WordPress Archive that seems to have stopped working.

If I insert the view into a normal page it works as expected, but on the Archive it doesn't display the content. It used to work, but at some point has stopped displaying the content in the view.

Could you help me troubleshoot this please?
The archive is here: hidden link

The content of the archive is:
*****
[wpv-layout-start]
[wpv-items-found]
<div class="wrapper archiveheader">
<h1>Pebble Seats</h1>
<ul class="filters">

  • All
  • hidden link">Pendeen
  • hidden link">Pico
  • </div>
    [wpv-view name="pebble-seating-product-view"]

    <!-- wpv-loop-start -->
    <wpv-loop>

    </wpv-loop>
    <!-- wpv-loop-end -->
    [/wpv-items-found]
    [wpv-no-items-found]
    [wpml-string context="wpv-views"]No items found[/wpml-string]
    [/wpv-no-items-found]
    <div class="typedescription">[get_cpt_desc_for_archive]</div>
    [wpv-layout-end]
    *****

    It's the [wpv-view name="pebble-seating-product-view"] that isn't displaying - above the loop. Could I have a bit of help with this please.
    Many thanks, Emily

    #1576031

    Shane
    Supporter

    Languages: English (English )

    Timezone: America/Jamaica (GMT-05:00)

    Hi Emily,

    Thank you for getting in touch. This is actually a known issue and we have an errata setup that can assist you with working around the issue.

    Have a look at the link below and let me know if the instructions were able to help you resolve this.
    https://toolset.com/errata/content-template-is-not-rendered-if-added-outside-the-archive-loop-of-a-view/

    This also applies to a view as well if your view is using a content template.

    So in summary if the view that you added to the layout is using a content template to display its content. You will need to copy the contents from the view's content template into the <wpv-loop> tag replacing each of the content template calls with the contents you've copied.

    Please let me know if this helps.
    Thanks,
    Shane

    #1577245

    Thanks Shane, I'm not sure if I completely understand but I'll have a proper look at it with the site in front of me. I'll let you know if I figure it out!
    Cheers, Emily

    #1577651

    Shane
    Supporter

    Languages: English (English )

    Timezone: America/Jamaica (GMT-05:00)

    Hi Emily,

    Great, if you are experiencing any challenges at all please let me know and I will be more than happy lend my assistance.

    Thanks,
    Shane