Skip Navigation

[Resolved] View is showing duplicate results

This thread is resolved. Here is a description of the problem and solution.

Problem:

I have a view on the page that is displaying users with the role Author as a Slider.

It is working successfully, but 2 authors (Abigale Foster & Quean Mo) show duplicate results even though they only have one user account. In comparing the authors with the duplicate results, I cannot see anything about there profiles that stand out as different.

Solution:

Since it is an user view, you can remove the content template shortcode [wpv-post-body view_template="loop-item-in-author-slider"], replace with the actual codes of the "Templates for View".

Relevant Documentation:

This support ticket is created 4 years, 10 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/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 3 voices.

Last updated by daveS-9 4 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1821685
Screen Shot 2020-10-22 at 7.36.52 PM.png

Tell us what you are trying to do?
I have a view on the page that is displaying users with the role Author as a Slider.

It is working successfully, but 2 authors (Abigale Foster & Quean Mo) show duplicate results even though they only have one user account. In comparing the authors with the duplicate results, I cannot see anything about there profiles that stand out as different.

Please note that the active author has a pink transparent overlay, so upon loading the page Abigale's images look different, it's just because her profile is chosen as active first.

What is the link to your site?
hidden link

Here is the View:
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-post-body view_template="loop-item-in-author-slider"]
</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]
[wpv-layout-end]

Templates for View:
<div class="card-item" id="parent-[wpv-user field='ID']">
<div class="card-content" data-id="tab-[wpv-user field='ID']" data-pid="[wpv-user field='ID']" id="card-[wpv-user field='ID']">
<div class="card-image new-image">
<img src="[types usermeta='upload-avatar' size='medium' url='true'][/types]">
</div>
<div class="card-body">
<div class="card-title">
<h3>[wpv-user field="display_name"]</h3>
</div>
<div class="card-desc">
</div>
</div>
</div>
</div>

#1822217

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

I think we'll need access to your site to take a look and see if we can identify the problem, it's not obvious from the details you shared above.

Let me mark your next reply as private so that we can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

#1824519

Hello,

I have tried the credentials you provided above, it is not valid, I get this error:

Your session was finished.

Please check it.

And since you are using a user view, I suggest you try to remove the content template shortcode [wpv-post-body view_template="loop-item-in-author-slider"], replace with the actual codes of the "Templates for View".

And test again.

#1824935

My issue is resolved now. Thank you!