Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter yustein

    (@yustein)

    It seems like when I use Visual Composer to do the structure of the page this specific code is creating a problem

    [pass global="_GET" field="eventidpar"][loop type="pods_event" field="id_event" value="{FIELD}"]
    <h2>[field title_event]</h2>
    [/loop][/pass]

    The code below is the one which doesn’t work, it obviously have Visual Composer Shortcodes surrounding our code to create row/column structure.

    [vc_row][vc_column width="1/2"][vc_row_inner][vc_column_inner width="1/4"][vc_column_text css_animation="right-to-left"][/vc_column_text][/vc_column_inner][vc_column_inner width="3/4"][vc_column_text css_animation="right-to-left"][raw][pass global="_GET" field="eventidpar"][loop type="pods_event" field="id_event" value="{FIELD}"]
    <h2>[field title_event]</h2>
    [/loop][/pass][/raw][/vc_column_text][/vc_column_inner][/vc_row_inner][vc_column_text css_animation="right-to-left"][/vc_column_text][/vc_column][vc_column width="1/2"][vc_row_inner][vc_column_inner width="1/1"][vc_column_text css_animation="right-to-left"][/vc_column_text][/vc_column_inner][/vc_row_inner][/vc_column][/vc_row]

    Maybe I’m approaching this from the wrong angle, maybe every little part should be an html file and load them in the VC parts, or make every single data that is going to be used on the screen a shortcode using Global Content Blocks plugin and use do shortcode inside PHP to get the values (because I hate PHP)

    or ditch the whole thing code the pages in PHP completely (and go mad)

    Hmm, I’m stuck! ??

    Plugin Author Eliot Akira

    (@miyarakira)

    Hmm, this is a tough one to diagnose: the shortcodes are deeply nested, and there are so many interacting parts – including Visual Composer.

    I would start by removing part by part, to narrow down exactly where the issue is happening. It could be that opening and closing shortcodes are not matched perfectly.

    Also, as you described, it might help if you break it down into smaller components.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using [loop] multiple times on the same page’ is closed to new replies.