Skip Navigation

[Resolved] View not displaying the 1st item on the 1 row – last column

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by randallH-3 6 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#951048
Screen Shot 2018-07-19 at 11.36.16 AM.png
Screen Shot 2018-07-19 at 11.35.40 AM.png
[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
	<table width="100%" style="border:1px solid gray">
		<thead>
			<tr>
             	<th>Thumbnail</th>
				<th>Title</th>
             	<th>Type</th>
				<th>Notes</th>
				<th>Download</th>
			</tr>
		</thead>
		<tbody>
		<wpv-loop>
          [wpv-conditional if="( '[wpv-current-user info='login']' eq '[types field='note-user'][/types]' )"]
			<tr>
             	<td class="tdPP">[wpv-post-featured-image id="$proof-point"]</td>
       			<td class="tdPP">[wpv-post-link id="$proof-point"]</td>
          		<td class="tdPP">[wpv-post-type show="single" id="$proof-point"]</td>
          		<td class="tdPP">[cred_form form='edit-note']</td>
                <td class="tdPP">[wpv-conditional if="( $(wpcf-proof-point-ppt-file).id(proof-point) ne '' )"] <a href="[types field='proof-point-ppt-file' id='$proof-point' output='raw'][/types]" download><img height="30" src="/wp-content/uploads/2017/04/ppt.png" width="30"></a> [/wpv-conditional][wpv-conditional if="( $(wpcf-proof-point-excel-file).id(proof-point) ne '' )"] <a href="[types field='proof-point-excel-file' id='proof-point' output='raw'][/types]" download><img height="30" src="/wp-content/uploads/2017/04/xls.png" width="30"></a> [/wpv-conditional][wpv-conditional if="( $(wpcf-proof-point-pdf-file).id(proof-point) ne  '' )"] <a target='_blank' href="[types field='proof-point-pdf-file' id='$proof-point' output='raw'][/types]" download><img height="30" src="/wp-content/uploads/2017/04/pdf.png" width="30"></a> [/wpv-conditional]</td>
              
			</tr>
            
          [/wpv-conditional]
		</wpv-loop>
		</tbody>
	</table>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

#951193

Hello,

In the column "Download", you are using below codes to display data:

[wpv-conditional if="( $(wpcf-proof-point-ppt-file).id(proof-point) ne '' )"] <a href="[types field='proof-point-ppt-file' id='$proof-point' output='raw'][/types]" download><img height="30" src="/wp-content/uploads/2017/04/ppt.png" width="30"></a> [/wpv-conditional]
[wpv-conditional if="( $(wpcf-proof-point-excel-file).id(proof-point) ne '' )"] <a href="[types field='proof-point-excel-file' id='proof-point' output='raw'][/types]" download><img height="30" src="/wp-content/uploads/2017/04/xls.png" width="30"></a> [/wpv-conditional]
[wpv-conditional if="( $(wpcf-proof-point-pdf-file).id(proof-point) ne  '' )"] <a target='_blank' href="[types field='proof-point-pdf-file' id='$proof-point' output='raw'][/types]" download><img height="30" src="/wp-content/uploads/2017/04/pdf.png" width="30"></a> [/wpv-conditional]

There are three [wpv-conditional] shortcodes, I suggest you try to debug them one by one, check if the 1st item satisfied all conditionals and can output any data.

#951204

Yes, tried it. Please check the screenshots attached on the first message.

#951217

1) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2017, and test again

2) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks

#952060

Thanks for the details, I can see the problem in your website, and I am downloading the database dump file, will update this thread if there is anything found

#952083
note2.PNG
note.PNG

I can not duplicate the same problem with your website, in you website:
hidden link
the first item is a "Note" post, see screenshot note.PNG, which is different from your screenshot:
hidden link

But in my localhost, this problem can be fixed by this:
1) Create a content template "download CT", with below codes:

[wpv-conditional if="( $(wpcf-proof-point-ppt-file) ne '' )"] <a href="[types field='proof-point-ppt-file' output='raw'][/types]" download><img height="30" src="/wp-content/uploads/2017/04/ppt.png" width="30"></a> [/wpv-conditional][wpv-conditional if="( $(wpcf-proof-point-excel-file) ne '' )"] <a href="[types field='proof-point-excel-file' output='raw'][/types]" download><img height="30" src="/wp-content/uploads/2017/04/xls.png" width="30"></a> [/wpv-conditional][wpv-conditional if="( $(wpcf-proof-point-pdf-file) ne  '' )"] <a target='_blank' href="[types field='proof-point-pdf-file' output='raw'][/types]" download><img height="30" src="/wp-content/uploads/2017/04/pdf.png" width="30"></a> [/wpv-conditional]

2) Edit the view "Notes All, edit the column of "download", and display above content template like this:

...
<td class="tdPP">[wpv-post-body view_template="download CT" id="$proof-point"]</td>
...

It works fine in front-end, see screenshot note2.PNG

#952090

Thanks Luo, that fixed the issue.