function rb_latest_projects_shortcode($atts, $content) { $html = '<div class="portfolio"><ul class="items">'; global $post; $args = array('posts_per_page' => $atts['no'], 'offset' => 0, 'post_type' => 'portfolio'); $all_posts = new WP_Query($args); while ($all_posts->have_posts()) { $all_posts->the_post(); $html .= '<li><a href="' . get_permalink() . '"> <div class="caption"> <h3>' . get_the_title() . '</h3><span class="meta">' . rb_get_categories($post->ID, 'portfolio_category', ', ', 'name', false) . '</span> </div>' . get_the_post_thumbnail($post->ID, 'thumb-video') . ' </a></li>'; } $html .= '</ul></div>'; return $html; }
<li class="item <?php rb_get_categories($post->ID, 'videofolio_category', ' ', 'slug'); ?> " data-address="id<?php echo $i++; ?> "> <a href="#"> <div class="caption"> <h3><?php the_title(); ?> </h3> <span class="meta"><?php rb_get_categories($post->ID, 'videofolio_category'); ?> </span> </div> <?php the_post_thumbnail('thumb-video'); ?> </a> </li> <?php } ?> </ul>
echo $image[2]; ?> " src="<?php echo $image[0]; ?> " alt="<?php the_title(); ?> " /> <div class="caption"> <h3><?php the_title(); ?> </h3> <span><?php rb_get_categories($post->ID, 'portfolio_category'); ?> </span> </div> </a> </li> <?php } ?> </ul> </div> <?php
echo $post->ID; ?> -0" rel="gallery<?php echo $post->ID; ?> " data-hash="#/<?php echo $post->post_name; ?> "> <div class="caption"> <h3><?php the_title(); ?> </h3> <span class="meta"><?php rb_get_categories($post->ID, 'gallery_category'); ?> </span> </div> <?php the_post_thumbnail('thumb-video'); ?> </a> <div id="gallery-title<?php echo $post->ID; ?> -0" class="info hidden"> <h2><?php echo $the_gallery[0]['title']; ?> </h2>