• Resolved WebDevels

    (@webdevels)


    Hello,
    I’m new to Pods but already loving it <3 Everything worked fine until I wanted to use shortcodes from other plugins in a pod-template. Instead of generating the needed code the shortcode get printed out.

    I found this: https://pods.io/docs/learn/shortcodes/pods/#shortcodes-in-templates and did both (added the constant to wp-config.php and also added the function to my themes functions.php). I still get the shortcode shown ??

    I am using the Avada theme and want to use the gallery shortcode to display a Masonry gallery.

    [fusion_builder_container hundred_percent="yes" hundred_percent_height="no" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" equal_height_columns="no" menu_anchor="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" status="published" publish_date="" class="" id="" background_color="" background_image="https://path/to/image.jpg" background_position="center center" background_repeat="no-repeat" fade="no" background_parallax="fixed" enable_mobile="no" parallax_speed="0.3" video_mp4="" video_webm="" video_ogv="" video_url="" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" video_preview_image="" border_size="" border_color="" border_style="solid" margin_top="" margin_bottom="" padding_top="60px" padding_right="" padding_bottom="60px" padding_left=""]
    [fusion_builder_row]
    [fusion_builder_column spacing="" center_content="no" link="" target="_self" min_height="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" background_color="" background_image="" background_image_id="" background_position="left top" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" box_shadow="no" box_shadow_blur="0" box_shadow_spread="0" box_shadow_color="" box_shadow_style="" animation_type="" animation_direction="left" animation_speed="0.3" animation_offset="" type="1_1"]
    
    [fusion_gallery layout="masonry" picture_size="" columns="4" column_spacing="16" gallery_masonry_grid_ratio="" gallery_masonry_width_double="" hover_type="zoomin" lightbox="yes" lightbox_content="" bordersize="" bordercolor="" border_radius="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id=""]
    [if bilder]
        [each bilder]
            [fusion_gallery_image image="{@_src}" image_id="{@ID}|full" link="" linktarget="_self" /]
        [/each]
    [/if]
    [/fusion_gallery]
    
    [/fusion_builder_column]
    [/fusion_builder_row]
    [/fusion_builder_container]

    Everything is working except this line [fusion_gallery_image image="{@_src}" image_id="{@ID}|full" link="" linktarget="_self" /], this will be printed as pure text ({@_src} and {@ID} are converted to what it should be).

    define( 'PODS_SHORTCODE_ALLOW_SUB_SHORTCODES', true ); is in wp-config AND the add_filter function in /wp-content/themes/Avada-Child-Theme/functions.php.
    What am i doing wrong?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    Honestly, I don’t believe you can get away with that many nested shortcodes. You need to simplify your code, or you need to add an HTML block to just this builder module:

    `
    [fusion_gallery layout=”masonry” picture_size=”” columns=”4″ column_spacing=”16″ gallery_masonry_grid_ratio=”” gallery_masonry_width_double=”” hover_type=”zoomin” lightbox=”yes” lightbox_content=”” bordersize=”” bordercolor=”” border_radius=”” hide_on_mobile=”small-visibility,medium-visibility,large-visibility” class=”” id=””]
    [if bilder]
    [each bilder]
    [fusion_gallery_image image=”{@_src}” image_id=”{@ID}|full” link=”” linktarget=”_self” /]
    [/each]
    [/if]
    [/fusion_gallery]
    `

    We don’t support the Fusion Builder. Typically if you’re having issues like this with too many shortcodes, you need to flip where you’re calling the shortcode from. Instead of copying all the Fusion Builder shortcodes into our templates, just call the gallery piece that you need in the module for the builder shortcode.

Viewing 1 replies (of 1 total)
  • The topic ‘Using other plugin shortcodes in templates not working’ is closed to new replies.