Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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’);

    #1208006

    Hey 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 Shannon

    #1208055

    Jordan 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

    #1208358

    Hi,

    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 Shannon

    #1208380
    This reply has been marked as private.
    #1208683

    Hi,

    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 Shannon

    #1208688

    Is it possible to raise this as a future request, please

    Pete

    #1208921

    Hi,

    Yes, I will share it with the rest of the team.

    Best regards,
    Jordan Shannon

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.