How to exclude certain portfolios from a loop

so I am thinking your $arg would be: $args = array( ‘numberposts’ => $portfolio_items, ‘order’ => $portfolio_sort, ‘orderby’ => ‘date’, ‘post_type’ => array(‘portfolios’), ‘offset’ => $offset, ‘exclude’ => ‘1,2’, ); And that would exclude post 1 and 2. But a better option that you should do, is to just create a featured category for your … Read more

custom post types shortode stays on top of other page contents. Is there a bug?

You have this code in your shortcode function: if( count($posts) ): echo ‘<ul id=”portfolio-grid” class=”portfolio-grid unstyled ‘.$post_columns.’-cols”>’; foreach( $posts as $post ) : setup_postdata( $post ); ?> <li> <a href=”https://wordpress.stackexchange.com/questions/104016/<?php the_permalink(); ?>” data-largesrc=”<?php if ( has_post_thumbnail() ) { echo ub_featured_img_url(‘portfolio-fullsize’); } else { ?>http://placehold.it/600&text=<?php _e(‘No Thumbnails’, ‘une_boutique’); } ?>” data-title=”<?php the_title() ?>” data-button=”<?php _e(‘View Project’, … Read more