paulw-2
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 |
---|---|---|---|---|---|
Choose slider or grid display with types
Started by: paulw-2 in: Toolset Professional Support |
3 | 5 | 4 years, 6 months ago | ||
Images won't show up inside vc galleries in other language
Started by: paulw-2 in: Toolset Professional Support |
2 | 8 | 5 years, 2 months ago | ||
Problem Content template translation files
Started by: paulw-2 in: Toolset Professional Support |
2 | 17 | 5 years, 6 months ago | ||
A select option for a custom fields set inside a custom post type
Started by: paulw-2 in: Toolset Professional Support |
2 | 9 | 5 years, 7 months ago | ||
Image id’s inside vc_gallery
Started by: paulw-2
in: Toolset Professional Support
Problem: The issue here is that the user wanted to get the repeatable fields image id to render in the VC gallery shortcode. Solution: This can be done by using the shortcode below. // Add Shortcode function get_repeatable_image_ids( $atts ) { // Attributes $atts = shortcode_atts( array( 'field' => '', 'id' => '' ), $atts ); $image_urls = get_post_meta($atts['id'],$atts['field']); $id_list = array(); foreach ($image_urls as $image_url) { if(!empty($image_url)){ array_push($id_list, attachment_url_to_postid($image_url)); } } $gallery_ids = implode(",", $id_list); return do_shortcode("[vc_gallery el_id='gallery-847486' medias='".$gallery_ids."' gutter_size='3' screen_lg='1000' screen_md='600' screen_sm='480' single_overlay_opacity='50' single_padding='2']"); } add_shortcode( 'display_vc_gallery', 'display_vc_gallery' ); What I did was to render the VC shortcode directly in the custom shortcode. To use the shortcode you will need to do this. |
2 | 15 | 5 years, 10 months ago | ||
Content template needs manual update after publish
Started by: paulw-2 in: Toolset Professional Support |
2 | 2 | 6 years, 8 months ago |