Untitled

 avatar
unknown
plain_text
2 years ago
4.2 kB
14
Indexable
$args = array(
		  'post_type' => 'package',
		  'posts_per_page' => -1,
		  'order' => 'ASC',
		);
		$package = new WP_Query($args);        
		$x=0;	
		while ( $package->have_posts()) : $package->the_post();  $x++;?>

		<div  data-parent="true"  class="vc_row row-container"  id="row-unique-0"  data-section="0">
			<div class="row full-width row-parent" data-imgready="true">
				<div class="wpb_row row-inner">
				<div class="wpb_column pos-top pos-center align_left column_parent col-lg-2 single-internal-gutter" >
					<div class="uncol style-light">
					<div class="uncoltable">
						<div class="uncell no-block-padding">
						<div class="uncont">
							<div class="wpb_raw_code wpb_content_element wpb_raw_html">
							<div class="wpb_wrapper">                  
							</div>
							</div>
						</div>
						</div>
					</div>
					</div>
				</div>
				<div class="wpb_column pos-top pos-center align_left column_parent col-lg-8 single-internal-gutter">
					<div class="uncol style-light">
					<div class="uncoltable">
						<div class="uncell no-block-padding">
						<div class="uncont">
							<div class="wpb_raw_code wpb_content_element wpb_raw_html">
							<div class="wpb_wrapper">
									<div class="row">
										<div class="col">
											<div class="tabs">
											<div class="tab">
												<input type="checkbox" id="chck<?php echo $x ?>" />
												<label class="tab-label " for="chck<?php echo $x ?>">
												<span class="">
													<img style="max-width: none !important; width: 250px !important; height: 200px !important;"
													src="<?php echo get_the_post_thumbnail_url(); ?>"
													/>
												</span>
												<span class="textContainer" id="mobileText">												
													<h2 class="textTitle">  <?php the_title(); ?> </h2>     
													<p class="showPackage<?php echo $x ?>"><?php the_field('wording_mostra')?></p>                     
													<p class="hidePackage<?php echo $x ?>" style="display:none;"><?php the_field('wording_nascondi')?></p>    
													<p> <?php the_field('info_biglietti')?></p>        
												</span>
												</label>
												<div class="tab-content">
												<div class="wpb_row row-inner">
														<div
														class="wpb_column pos-top pos-center align_left column_parent col-lg-9 single-internal-gutter"
														>
														<div class="uncol style-light">
															<div class="uncoltable">
															<div class="uncell no-block-padding">
																<div class="uncont">
																	<div class="uncode_text_column">
																		<?php the_field('programma_principale')?>	
																	</div>
																</div>
															</div>
															</div>
														</div>
														</div>
												</div>
												<?php>
												$args2 = array(
													'post_type' => 'ticket',
													'posts_per_page' => -1,
													'order' => 'ASC',
													);
													$ticket = new WP_Query($args2); 
												while ( $ticket->have_posts()) : $ticket->the_post();;
												?>
													
                                                    <div> Qui inserire variabili</div>
												<?php endwhile; 
												wp_reset_query();
												?>

									     	</div>
											</div>
											</div>
										</div>
									</div>							
							</div>
							</div>
						</div>
						</div>
					</div>
					</div>
				</div>
				<div class="wpb_column pos-top pos-center align_left column_parent col-lg-2 single-internal-gutter">
					<div class="uncol style-light">
					<div class="uncoltable">
						<div class="uncell no-block-padding">
						<div class="uncont">
							<div class="wpb_raw_code wpb_content_element wpb_raw_html">
							<div class="wpb_wrapper">                  
							</div>
							</div>
						</div>
						</div>
					</div>
					</div>
				</div>
				<script
					id="script-row-unique-0"
					data-row="script-row-unique-0"
					type="text/javascript"
					class="vc_controls"
				>
					UNCODE.initRow(document.getElementById("row-unique-0"));
				</script>
				</div>
			</div>
		</div>
		<?php endwhile; ?>

Editor is loading...