Skip Navigation

[Resolved] Archive loop shows the first post's full content instead of content template

This support ticket is created 3 years, 5 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Amanda 3 years, 5 months ago.

Assisted by: Waqar.

Author
Posts
#1796995

We have a table for archive post loops that displays a table of all posts for an archive page in a table row with custom field information pulled.

Archive loop editor:
[wpv-layout-start]
[wpv-items-found]
<div class="membersListingWrapper">
<table width="100%" class="membersListing">
<thead>
<tr>
<th>[wpv-heading name="types-field-icao"]ICAO[/wpv-heading]</th>
<th>[wpv-heading name="types-field-iata"]IATA[/wpv-heading]</th>
<th>[wpv-heading name="types-field-fbo-name"]FBO Name[/wpv-heading]</th>
<th>[wpv-heading name="types-field-phone"]Phone[/wpv-heading]</th>
<th>[wpv-heading name="types-field-fax"]Fax[/wpv-heading]</th>
<th>[wpv-heading name="types-field-manager-name"]Point of Contact (GM)[/wpv-heading]</th>
<th></th>
</tr>
</thead>
<tbody class="wpv-loop js-wpv-loop">
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-post-body view_template="fbo-members-list-table-row"]
</wpv-loop>
<!-- wpv-loop-end -->
</tbody>
</table>
</div>
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No FBO members found[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

Content template for "fbo-members-list-table-row":
<tr>
<td>[types field='icao'][/types]</td>
<td>[types field='iata'][/types]</td>
<td><a href="[wpv-post-url]" rel="bookmark" title="Permanent Link to [wpv-post-title output="sanitize"]">[types field='fbo-name'][/types]</a></td>
<td>[types field='phone' index='0' separator=', '][/types]</td>
<td>[types field='fax' index='0' separator=', '][/types]</td>
<td>[types field='manager-name'][/types]</td>
<td><a href="[wpv-post-url]" rel="bookmark" title="Permanent Link to [wpv-post-title output="sanitize"]">More info</a></td>
</tr>

After updating to the latest plugin version, the first post in the loop is displayed with full post content instead of following the content template to display in a table row.

See issue here: hidden link

#1797429

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Amanda,

Thank you for contacting us and I'd be happy to assist.

To troubleshoot and reproduce this on a test website, I'll need to see how this archive is set up in the admin area of your website.

Can you please share temporary admin login details, in reply to this message?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Waqar

#1798127

We recreated the two WordPress archive templates without using the linked "fbo-members-list-table-row" content template feature and the issue with the first post displaying it's full content is gone.

We will be using these temporary WordPress archive templates for now until the issue with using linked content templates can be fixed.

You can review the original WordPress archive templates using the linked content templates in the Toolset backend.

#1800231

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for sharing the admin access.

It seems that the content template used for the two archives is being affected by the filters from the theme.

To avoid this, you can include the suppress_filters="true" attribute in the "wpv-post-body" shortcode, in the archive's "Loop Editor":
( ref: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-body )

Existing shortcode:


[wpv-post-body view_template="fbo-members-list-table-row"]

Updated shortcode:


[wpv-post-body view_template="fbo-members-list-table-row" suppress_filters="true"]

I hope this helps and you can update the shortcode in the "FBO Members Archive" the same way.

regards,
Waqar

#1802041

My issue is resolved now.

The suppress_filters="true" attribute in the "wpv-post-body" shortcode works.

Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.