Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #370621

    Hi Kriesi,

    I have a question on Enfold’s Portfolio Shortcode. Please see a portfolio page on the website at .

    On this page we show a product and want to use the Portfolio Shortcode to show “Other products of this category”. However, now it shows the 4 most recent products in that category and that includes the one shown above.

    Is there a possibility to NOT show the one product on that page, but only OTHER products in the Portfolio Showcase? If yes, how can we do that?

    Thanks & regards,
    Monique

    #370796

    Hi MoniqueMartens!

    Try using the blog shortcode instead and then select a custom taxonomy to use in the shortcode option to display your portfolio entries. You can then set an offset in the shortcode options as well to skip some posts.

    I think that is what your wanting to do but if not then send us a link so we can get a better idea.

    Cheers!
    Elliott

    #370829

    Hi Elliot,

    Thanks for your reply!

    I just now see that the link was missing. What you suggest is not really what I mean (I think).

    Please have a look at a product/portfolio page.

    Looking forward to your reply.

    Bye,
    Monique

    #370918

    Hi!

    Please add this on functions.php:

    /**
     * Portfolio Single Query
     */
     
    add_filter( 'avia_post_grid_query', 'avia_portfolio_query', 10, 2);
    function avia_portfolio_query( $query, $params ) {
    	if(is_single()) {
    		$id = get_the_ID();
    		if(avia_post_grid::$grid == 0) $query['post__not_in'] = array($id);
    	}
        return $query;	
    }

    Cheers!
    Ismael

    #375638

    Hi Ismael,

    Sorry for my late reply! Best wishes for 2015!!

    This works perfectly as required :-)

    Thanks & regards,
    Monique

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Portfolio shortcode’ is closed to new replies.