@ 2014-05-05T17:21:56Z <?php
$vertical_slides_query_args = array( 'post_type' => 'vertical_slides',);
$vertical_slides_query = new WP_Query( $vertical_slides_query_args );
$vertical_slides_num = 0;
$outer_div_bg_img = '';
$outer_div_bg_color = '';
$outer_div_bg_pos ='';
$published_posts = wp_count_posts('vertical_slides')->publish;
if ( $vertical_slides_query->have_posts() ) : while ( $vertical_slides_query->have_posts() ) : $vertical_slides_query->the_post();
$vertical_slides_num++;
$next_slide = $vertical_slides_num + 1;
if ( has_post_thumbnail() ) {
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $carousel_query->ID ), 'large' );
$outer_div_bg_img = "background-image: url(". $image[0] .")";
}else{
$outer_div_bg_img ='background-image: none';
}
if (get_post_meta($post -> ID, "bg-color", true) != ""){
$outer_div_bg_color = "background-color: #" . get_post_meta($post -> ID, "bg-color", true);
}else {
$outer_div_bg_color = "background-color: transparent";
}
if (get_post_meta($post -> ID, "bg-pos", true) != ""){
$outer_div_bg_pos = "background-position:" . get_post_meta($post -> ID, "bg-pos", true);
}else{
$outer_div_bg_pos = "background-position: center center";
}
?>
<div class="<?php
if ($vertical_slides_num >= $published_posts)
{
echo 'last-slide';
}
?>" id="slide-<?php echo $vertical_slides_num; ?>">
<!-- Custom Wrapper From Fields in Post -->
<?php
if (get_post_meta($post -> ID, "content-wrapper-div", true) != "")
{
echo get_post_meta($post -> ID, "content-wrapper-div", true);
}
?>
<?php echo apply_filters('the_content', get_the_content()); ?>
<!-- Close Custom Wrapper -->
<?php
if (get_post_meta($post -> ID, "content-wrapper-div", true) != "")
{
echo "</div>";
}
?>
<?php if($vertical_slides_num < $published_posts): ?>
<?php else: ?>
<?php endif; ?>
</section>
</div>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Version System time (s) User time (s) Memory (MiB) 5.4.28 0.007 0.034 12.35 5.4.27 0.011 0.046 12.35 5.4.26 0.013 0.035 12.35 5.4.25 0.006 0.039 12.35 5.4.24 0.011 0.034 12.35 5.4.23 0.005 0.040 12.34 5.4.22 0.008 0.050 12.34 5.4.21 0.008 0.050 12.34 5.4.20 0.009 0.038 12.34 5.4.19 0.013 0.045 12.34 5.4.18 0.013 0.050 12.34 5.4.17 0.003 0.056 12.35 5.4.16 0.011 0.045 12.35 5.4.15 0.008 0.047 12.34 5.4.14 0.007 0.048 12.03 5.4.13 0.006 0.041 12.02 5.4.12 0.013 0.072 11.98 5.4.11 0.011 0.051 11.97 5.4.10 0.006 0.049 11.98 5.4.9 0.007 0.049 11.97 5.4.8 0.007 0.050 11.97 5.4.7 0.014 0.043 11.96 5.4.6 0.012 0.044 11.96 5.4.5 0.010 0.047 11.97 5.4.4 0.006 0.050 11.95 5.4.3 0.008 0.048 11.95 5.4.2 0.009 0.048 11.95 5.4.1 0.010 0.045 11.95 5.4.0 0.012 0.049 11.45 5.3.28 0.012 0.061 12.71 5.3.27 0.009 0.044 12.72 5.3.26 0.009 0.051 12.72 5.3.25 0.008 0.052 12.72 5.3.24 0.010 0.051 12.72 5.3.23 0.006 0.040 12.71 5.3.22 0.006 0.037 12.68 5.3.21 0.010 0.046 12.68 5.3.20 0.007 0.048 12.68 5.3.19 0.009 0.038 12.67 5.3.18 0.008 0.047 12.67 5.3.17 0.005 0.042 12.67 5.3.16 0.003 0.039 12.67 5.3.15 0.007 0.036 12.67 5.3.14 0.006 0.037 12.66 5.3.13 0.011 0.035 12.66 5.3.12 0.005 0.040 12.66 5.3.11 0.006 0.039 12.66 5.3.10 0.009 0.046 12.12 5.3.9 0.007 0.052 12.09 5.3.8 0.006 0.039 12.07 5.3.7 0.009 0.036 12.07 5.3.6 0.010 0.047 12.07 5.3.5 0.005 0.047 12.00 5.3.4 0.011 0.046 12.00 5.3.3 0.007 0.051 11.94 5.3.2 0.006 0.037 11.72 5.3.1 0.011 0.045 11.69 5.3.0 0.005 0.041 11.68
preferences:dark mode live preview
139.84 ms | 1394 KiB | 7 Q