martyB
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Generate slide on my slider
Started by: martyB
in: Toolset Professional Support
Problem: The issue here is that the user had some repeated image fields and wanted to create a slider using these images. Solution: I managed to create a flexslider plugin that should be able to help your. Download and install the plugin in the link below. Then create a content template for your post and add the following. <div class="flexslider"> <ul class="slides"> [wpv-for-each field="wpcf-image_1"] <li>[types field="image_1" size="medium" align="none" resize="pad" padding_color="#FFF"][/types]</li> [/wpv-for-each] </ul> </div> After doing this then you will need to add the script for it to work. Add this to the js section of the content template. jQuery(window).load(function() { jQuery('.flexslider').flexslider(); }); |
3 | 5 | 5 years, 10 months ago | ||
Listing
Started by: martyB in: Toolset Professional Support |
2 | 2 | 6 years, 3 months ago | ||
Map is showing shortcode in pop-up instead of content
Started by: martyB in: Toolset Professional Support |
2 | 4 | 6 years, 6 months ago | ||
There is a problem rendering field (). wrong field type
Started by: martyB in: Toolset Professional Support |
2 | 4 | 6 years, 7 months ago | ||
Post-fields query doesn't show
Started by: martyB in: Toolset Professional Support |
2 | 5 | 6 years, 8 months ago | ||
Create 1 template for category archive with WPBAKERY
Started by: martyB
in: Toolset Professional Support
Problem: I would like to create 1 template and add it to all of my categories...but after the website will be managed by someone who doesn't know a lot about code and I want to give him the possibility to change some elements. Solution: Scroll down to the Loop output editor of this WordPress Archive and click the "Skip wizard" link. Place your cursor inside the wpv-loop tags and click "Content Template". Create a new Content Template and assign it to this archive (see new-ct-for-archive.png). Then scroll down to the Template Editor and you will be able to design this template with WPBakery, and you can allow your site admins to edit that template later with WPBakery (see edit-ct-with-wpbakery.png). You should only use the hook wpv_filter_force_wordpress_archive if you want to use a template that is different from the one you assigned to the Category taxonomy (see new-wp-archive.png). Like for example, if you want to one WPBakery template created above for all terms in the Category taxonomy except "uncategorized", then you will create another WordPress Archive that is not assigned to any taxonomy or post type, and design its loop template with WPBakery like before. Then use the wpv_filter_force_wordpress_archive hook to show this new WordPress Archive if the current archive is "uncategorized". Relevant Documentation: |
2 | 3 | 6 years, 8 months ago | ||
Embed flexslider Code
Started by: martyB
in: Toolset Professional Support
Problem: Can I embed Toolset wpv-for-each shortcodes in my PHP templates to loop over repeating fields? Solution: No, you should use the native WordPress function get_post_meta to get the values of your repeating field, then loop over those values and output the proper HTML strings. This is not a trivial task. Here's a simple example of looping over a repeating image field in PHP: $string = ''; $medias = get_post_meta(12345, 'wpcf-wpcf-medias', false); foreach($medias as $img) { $string .= "<a href='" . $img . "'><img src='" . $img . "' /></a>"; } echo $string; Relevant Documentation: |
2 | 2 | 6 years, 9 months ago | ||
Post settings
Started by: martyB
in: Toolset Professional Support
Problem: Unfortunately no this won't be possible as the theme itself must allow for custom post types to use their settings. Some themes such as DIVI and AVADA allows this. What I would recommend is to contact your theme's support to see if they have a solution for this. |
2 | 7 | 6 years, 9 months ago |