Skip Navigation

[Resolved] Remove dublicates?

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.

Our next available supporter will start replying to tickets in about 5.12 hours from now. Thank you for your understanding.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Adriano 6 years, 11 months ago.

Assigned support staff: Adriano.

Author
Posts
#274350

Hi.

I have a post type called Clients.

/*VIEW 1*/
I have their testimonials, but i only want to display their testimonial IF the BODY of that post is not empty..

This doesnt work for me.. what am i doing wrong?

    [wpv-if evaluate="'[wpv-post-body view_template="None"]'='!empty'"]
     <div class="col-xs-6 col-sm-4 col-md-3">
       [wpv-post-title]
       [wpv-post-body view_template="None"]
     </div>
    [/wpv-if]

/*VIEW 2*/
Further more i want to ask, i have a view displaying all the client logos.
I want to have a maximum of each logo 1 time, nomatter what client it is.. sometimes i get testimonials from different clients of same company, but i want to display their logo only once in this view.

#274450

Dear Thomas,

View 1

Please try the code below:

[wpv-if evaluate="'[wpv-post-body view_template="None"]' != ''"]
 <div class="col-xs-6 col-sm-4 col-md-3">
   [wpv-post-title]
   [wpv-post-body view_template="None"]
 </div>
[/wpv-if]

View 2

Please show me the code of this View.