Skip Navigation

[Closed] conditional output on map

This support ticket is created 4 years 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 4 years ago.

Assisted by: Minesh.

Author
Posts
#2069379

i need to add class "first" to every 4 elements, i'm using this code, it seems debuging gives ok and condition is setted correctly, but i dont have any output done, in fact i cannot display any output regarding of codintion:

[wpv-conditional if="( '[wpv-loop-index]' eq '1' ) OR ( '[wpv-loop-index]' eq '5' ) OR ( '[wpv-loop-index]' eq '9' ) OR ( '[wpv-loop-index]' eq '13' ) OR ( '[wpv-loop-index]' eq '17' ) OR ( '[wpv-loop-index]' eq 21' ) OR ( '[wpv-loop-index]' eq '25' )" debug="false"] <div class="column dt-sc-one-fourth first "> [/wpv-conditional]
[wpv-conditional if="( '[wpv-loop-index]' ne '1' ) AND ( '[wpv-loop-index]' ne '5' ) AND ( '[wpv-loop-index]' ne '9' ) AND ( '[wpv-loop-index]' ne '13' ) AND ( '[wpv-loop-index]' ne '17' ) AND ( '[wpv-loop-index]' ne 21' ) AND ( '[wpv-loop-index]' ne '25' )" debug="false"] <div class="column dt-sc-one-fourth "> [/wpv-conditional]

#2069743

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I think its better to go with JS workaround to add class to every 4th element using jQuery.

Please check the following example, you can adjust the following example as per your requirement:

jQuery(document).ready(function($){

$(".timeline li:nth-of-type(4n)").addClass('even');

});
#2069997

ok i will try, anyway, it seems conditional tags are not working in legacy views? despite of conditions.... even if i try condition 1=1 not seems to display any output

#2070181

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

That is strange. Can you please share problem URL so I can review where and how exactly you added the conditionals and then I will try to check with my test instsall.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

The topic ‘[Closed] conditional output on map’ is closed to new replies.