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>[types field='fbo-name'][/types]</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>More info</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
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
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.
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
My issue is resolved now.
The suppress_filters="true" attribute in the "wpv-post-body" shortcode works.
Thank you!