-
AuthorPosts
-
April 25, 2020 at 4:46 pm #1207072
I have search the support forum. What I want to do is to supress a portfolio item on a particular portfolio post. I have looked and tried this below in the php function files but this semms to supress across all of the website I only want it to supress for a particular post or set of posts not across all webiste can you hel please.
function ava_exclude_portfolio($query) {
$query->set( ‘offset’, ‘1’ );
}add_action(‘pre_get_posts’, ‘ava_exclude_portfolio’);
April 28, 2020 at 10:11 pm #1208006Hey condonpb,
So you want to just hide one of the posts? Can you provide a link to the site/page in question so we can look into this issue further?
Best regards,
Jordan ShannonApril 29, 2020 at 2:55 am #1208055Jordan there are multiple pages
1) So https://www.britishartportfolio.co.uk/art-portfolio-item/jill-barthorpe-three-apples/ keep the main image but hide thumbnail of Jill Barthorpe three apples
2) https://www.britishartportfolio.co.uk/art-portfolio-item/jill-barthorpe-star-vase-with-oranges/keep the main image but hide thumbnail of Jill Barthorpe star vase with oranges etc
What I want is under the heading of each portfolio item/image is to hide the duplicated thumbnail under the “Other Works’ Heading for all posts/artists
Hope this makes sense
Pete
April 29, 2020 at 11:03 pm #1208358Hi,
I see. Unfortunately this would require a bit of JS to pull off as there is not simpler solution. If you can provide admin info in the private area, I can try and work it out for you.
Best regards,
Jordan ShannonApril 29, 2020 at 11:46 pm #1208380This reply has been marked as private.April 30, 2020 at 11:52 pm #1208683Hi,
I looked into this and tried a few JS approaches, but couldn’t get it to work. This is because there is really nothing connecting the two elements, class or id wise. They would need to share some kind of id or class in order to remove one when the other is displayed.
Best regards,
Jordan ShannonMay 1, 2020 at 12:03 am #1208688Is it possible to raise this as a future request, please
Pete
May 1, 2020 at 7:58 pm #1208921Hi,
Yes, I will share it with the rest of the team.
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.