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! ??