• Hi There!

    I am using YARPP to display related woocommerce products using yarpp_related()

    I wanted to use YARPP on the cart page as well. I am able to easily set the post ID on basis of which the related products are shown but I want to exclude other products that might already be in the cart.

    I do have an array of post IDs but as far I could tell from reading the YARPP documentation, the exclude parameter in the arguments is to exclude certain taxonomies and not individual posts.

    How would you suggest we go about this? (Excluding certain posts based on their IDs)

    One dirty way would be capture the yarpp_related() output and then removing the duplicate ones but I would prefer not to have such a crude solution:p

    Let me know what you think! Thanks a lot!

The topic ‘Exclude specific post IDs’ is closed to new replies.