Support ForumRelated Portfolio include current Item – Support Forum https://support.ishyoboy.com/forums/topic/related-portfolio-include-current-item/feed Wed, 05 Feb 2025 12:57:22 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/related-portfolio-include-current-item/#post-5400 <![CDATA[Related Portfolio include current Item]]> https://support.ishyoboy.com/forums/topic/related-portfolio-include-current-item/#post-5400 Sat, 08 Nov 2014 19:45:39 +0000 OlalaWeb Hi all,

I’d like to point out the fact that it is not currently possible to create a great Related Portfolio Items blocks because there is no option too exclude the current post from the query.

I explain myself :
– I’ve create a portfolio item template with VC
– I’ve included a final row with the Portfolio elements (4 columns, 4 items)
– When viewing a portfolio item, the first item in this elements is the current Post…

I suppose there are two quick ways to solve this issue :
1 – Include a new option in the Portfolio Elements to Exluce Posts based on IDs
2 – Automatically exclude the current post in the shortcode if it is a singular Portfolio Item

I look forward to hearing from you,

Regards,

Matt

]]>
https://support.ishyoboy.com/forums/topic/related-portfolio-include-current-item/#post-5419 <![CDATA[Reply To: Related Portfolio include current Item]]> https://support.ishyoboy.com/forums/topic/related-portfolio-include-current-item/#post-5419 Mon, 10 Nov 2014 08:11:59 +0000 IshYoBoy Hi there,

Currently there is no option like that but it could be changed by overriding the portfolio shortcode template.

We’ll consider to add this option to the next update as it is quite logic and good to have it ;)

We’ll notify you in case there is the update
Have a nive day

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/related-portfolio-include-current-item/#post-5420 <![CDATA[Reply To: Related Portfolio include current Item]]> https://support.ishyoboy.com/forums/topic/related-portfolio-include-current-item/#post-5420 Mon, 10 Nov 2014 08:37:22 +0000 IshYoBoy Hey Matt,

Vlad here. Excluding the current item automatically seems quite logical for us and it’s a good idea. It will be part of the next update.

You can do the change manually by changing the query in the shortcode template:

Original code:

The new code:

We’re sure you know how to override the “ish_portfolio” shortcode, but for other users here is a guide (originally for the recent_posts element, but the steps for the portfolio are analogical)

Override shortcode template in a child theme

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>