tycooko
Forum Replies Created
-
Apparently, the slider is not a plugin, but natively created in my website’s code. Here’s the page of the editor for the slider:
<?php query_posts( ‘posts_per_page=10’ ); ?>
<div id=”sticky-container”>
<div id=”sticky-content” class=”row clearfix”><div class=”large-3 columns clearfix medium-3 show-for-medium-up carousel-wrapper show-for-medium-up” role=”sticky-sidebar”>
<div class=”carousel”>
<div class=”c-wrapper”><?php $query = new WP_Query( array(
‘post_type’ => array( ‘post’, ‘event’ ),
‘orderby’ => ‘date’,
‘order’ => ‘DESC’,
‘posts_per_page’ => 10) );
//’posts_per_page’ => -1) );
?><?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
<?php global $post; ?>
<div class=”c-list”>
” data-rel=”<?php the_ID(); ?>”>
<div class=”row clearfix”>
<div class=”large-3 medium-3 columns clearfix”><?php the_post_thumbnail(array(70, 70), array(‘class’ => ’rounded-thumb thumb’)); ?>
</div>
<div class=”large-6 medium-6 columns clearfix”>
<div class=”cell vertical-align”>
<div class=”post-date”><?php echo get_the_date(‘d/m/Y’); ?></div>
<h4 class=”post-title”><?php the_title(); ?></h4>
</div>
</div>
</div></div>
<?php endwhile; endif; ?>
<?php wp_reset_query(); ?>
</div>
</div>
<img src=”<?php echo get_template_directory_uri(); ?>/library/images/psm-arrow-up.png” class=”ico”>
<img src=”<?php echo get_template_directory_uri(); ?>/library/images/psm-arrow-down.png” class=”ico”>
</div>
<div class=”large-6 columns clearfix medium-6 show-for-medium-up” role=”sticky-sidebar”>
<div class=”sticky-post-list”>
<?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?><div class=”sticky-post” data-rel=”<?php the_ID(); ?>”>
“><?php the_post_thumbnail(‘sticky-home’); ?>
<div class=”post-date” style=”margin: 20px auto -20px;”><?php echo get_the_date(‘d/m/Y’); ?></div>
<h3 class=”panel-title”>“><?php the_title(); ?></h3>
<?php the_excerpt(); ?>
</div><?php endwhile; endif; ?>
</div>
</div><div class=”large-9 columns clearfix show-for-small-only mobile-main-slider”>
<div class=”swiper-container”>
<div class=”swiper-wrapper”><?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?>
<div class=”sticky-post swiper-slide” data-rel=”<?php the_ID(); ?>”>
“>
<?php the_post_thumbnail(‘sticky-home’); ?>
<h3><?php the_title(); ?></h3>
</div>
<?php endwhile; endif; ?></div>
</div></div>
</div>
</div>
<?php wp_reset_query(); ?>Hi Angelo,
thanks for your time.
Unfortunately, I have no idea what “wp_query” means. ??Forum: Plugins
In reply to: [Disqus Recent Comments Widget] Recent comments from only one category?No one is able to help?