PATH:
home
/
letacommog
/
supportleta
/
wp-content
/
plugins
/
webnus-shortcodes
/
shortcodes
<?php function easyweb_webnus_portfolio_carousel( $atts, $content = null ) { extract(shortcode_atts(array( 'title' => 'Recent Works', 'carousel_count' => '10', ), $atts)); ob_start(); // new Query $args = array( 'post_type' => 'portfolio', 'posts_per_page' => $carousel_count, ); $rw_query = new WP_Query( $args ); ?> <section class="related-works"> <!-- subtitle --> <div class="portfolio-carousel-subtitle"> <h4 class="subtitle"><?php echo esc_html( $title ); ?></h4> <!-- owl-carousel custom navigation --> <div class="latest-projects-navigation"> <a class="btn prev"><i class="fa-angle-left"></i></a> <a class="btn next"><i class="fa-angle-right"></i></a> </div> </div> <!-- latest-projects (owl-carousel) --> <ul id="latest-projects" class="owl-carousel owl-theme"> <?php if ( $rw_query->have_posts()) : while ( $rw_query->have_posts() ) : $rw_query->the_post(); ?> <li class="portfolio-item"> <a><?php the_post_thumbnail( 'easyweb_webnus_thumb300x200' ) ?></a> <h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5> <div class="portfolio-meta"><?php echo '<span class="portfolio-date">' . get_the_date('d F Y') . '</span>'; ?></div> </li> <?php endwhile; endif; wp_reset_query(); ?> </ul> <!-- end latest-projects --> </section> <!-- end related-works --> <?php $out = ob_get_contents(); ob_end_clean(); $out = str_replace('<p></p>','',$out); return $out; } add_shortcode('portfolio-carousel', 'easyweb_webnus_portfolio_carousel');
[+]
..
[-] ourclients.php
[edit]
[-] pricing-plan.php
[edit]
[-] callout.php
[edit]
[-] icon.php
[edit]
[-] blog.php
[edit]
[-] buy-process.php
[edit]
[-] tab.php
[edit]
[-] distance.php
[edit]
[-] heading.php
[edit]
[-] alerts.php
[edit]
[-] categorybox.php
[edit]
[-] columns.php
[edit]
[-] ministry.php
[edit]
[-] postfromblog.php
[edit]
[-] single-resource-books.php
[edit]
[-] ourteam.php
[edit]
[-] video-bg.php
[edit]
[-] accordion.php
[edit]
[-] title.php
[edit]
[-] portfolio-carousel.php
[edit]
[-] webtags.php
[edit]
[-] slide-up-note.php
[edit]
[-] latest-from-blog.php
[edit]
[-] iconbox.php
[edit]
[-] quote.php
[edit]
[-] iconfonts-param.php
[edit]
[-] subscribe.php
[edit]
[-] list.php
[edit]
[-] buttons.php
[edit]
[-] checklist-param.php
[edit]
[-] maxslider.php
[edit]
[-] teaser-box.php
[edit]
[-] latest-news.php
[edit]
[-] testimonial-carousel.php
[edit]
[-] our-porcess.php
[edit]
[-] lefttab.php
[edit]
[-] flexslider.php
[edit]
[-] icon-divider.php
[edit]
[-] googlemap.php
[edit]
[-] webnus-divider.php
[edit]
[-] tooltip.php
[edit]
[-] highlight.php
[edit]
[-] taglineslider.php
[edit]
[-] pie.php
[edit]
[-] countdown.php
[edit]
[-] maxcounter.php
[edit]
[-] testimonials.php
[edit]
[-] parallax.php
[edit]
[-] doublepromo.php
[edit]
[-] resource-books.php
[edit]
[-] progressbar.php
[edit]
[-] dropcap.php
[edit]
[-] video-play.php
[edit]
[-] blox.php
[edit]
[-] pricingtables.php
[edit]
[-] magicmore.php
[edit]