Skip Navigation

[Gelöst] slider with part2

This support ticket is created vor 5 Jahre, 5 Monate. 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/Karachi (GMT+05:00)

This topic contains 4 Antworten, has 2 Stimmen.

Last updated by Akhil vor 5 Jahre, 4 Monate.

Assisted by: Waqar.

Author
Artikel
#1165295

Hi, ive updated the old closed thread here:https://toolset.com/forums/topic/slider-views-not-from-toolset/#post-1165294

could you post the follow up here pls. thank you.

#1165405

Waqar
Supporter

Languages: Englisch (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Dee,

Thanks for writing back and I'll be happy to assist.

To get the complete picture, I'll need access to the front-end and admin area of the website.

Can you please share the link to the page where the slider is and also the custom PHP code? This will allow me to troubleshoot the missing link.

I'm going to set your next reply as private so that you can share the login details.

Important note: Although I'll not be making any changes to the website, it is always a good idea to make a complete backup copy of the website, before sharing the access details.

regards
Waqar

#1165621

could you pls test it with any simple field pls.
i would need some time to create staging site for this troubleshooting purpose. thanks

#1166264

Waqar
Supporter

Languages: Englisch (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Dee,

During testing for the inclusion of a dynamic value in the pagination items ( generated through the shortcode [ show_custom_slider_pagination] ), I noticed that it is outside the loop and therefore doesn't have the current slider post's ID.

Sorry I missed this detail earlier. A workaround that doesn't involve a secondary view or extra database queries would be, to use Javascript to populate these lables.

1. You can keep the span tag for the pagination item label empty in the PHP code:


echo '<span class="text text-uppercase"></span>';

2. Since, you can call any field value in the content template (inside the loop), you can print it in a hidden container:
( screenshot: hidden link )


<span class="hidden-lable">[wpv-post-title]</span>

For this example, I've used post title but you can use custom fields as well.

3. To hide this lable from showing inside the content template, you can add some custom CSS code:


.hidden-lable {
  display: none !important;
}

4. To get the values of these hidden lables and append them into the pagination item's span tag based on index, you can add following script in the view's "JS editor" tab:


jQuery(document).ready(function() {
    jQuery.each(jQuery('.hidden-lable'), function(index) {
        var value = jQuery(this).text();
      	jQuery('.carousel-indicators span.text.text-uppercase').eq(index).text(value);
    });
});

regards,
Waqar

#1169412

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.