Support » Plugin: Cactus Masonry Classic » Possible to exclude current post?

  • Resolved Sinkadus

    (@niwin)


    Hello!

    Thanks for a great plugin. I needed a plugin to display related posts at the bottom of my posts, and tried 10-15 different plugins that claimed to do that. But none where satisfactory. Then I discovered Cactus!

    But (always a but!), I can’t seem to find the shortcode option to exclude the current post. Is there such an option? If not, would you consider adding this? Something like

    current_posts=’false’ – that hookes to the current post.

    Finges crossed đŸ™‚

    https://wordpress.org/plugins/masonry-post-gallery/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Any thoughts on this?

    Plugin Author cactus.cloud

    (@bortpress)

    Uh, I’m so sorry.

    I have a lot on my plate, so I do all my support responses in the evenings. Anyway, I bookmarked the email that I received notifying me of the support request, but I must have missed it when I was testing and following up other emails. Sorry about that.

    So, the plugin runs independent of the current post – it creates its own loop with a new instance of WP_Query. I’m currently working on the successor to this plugin, which has been improved in every way, so I will look into seeing whether I can detect this before the query and store the ID.

    In the meantime, would you be happy with the ability to hide a post based on its ID? If so, you can use the post_id parameter. I have improved this parameter in version 1.1 which has just been released.

    This parameter will do any of the following:

    1. A positive search for a post with a given ID. e.g. [cactus-masonry post_id="42"] will return the post with an ID of 42 (assuming there is a post with a featured image and this ID).
    2. A positive search for multiple posts within a set of given IDs. e.g. [cactus-masonry post_id="42,77,129,1"]
    3. A search negating a post with a given ID. e.g. [cactus-masonry post_id="-42"] will return all posts except for the post with an ID of 42.
    4. A search negating multiple posts within a set of IDs. e.g. [cactus-masonry post_id="-42,-37,-128"]
    5. Any combination of the above… however, why you’d want to specify a post, then remove it from the search is a bit of a mystery

    Anyway, now you can specify the current post ID to remove it from the results.

    I hope that helps.

    Get back to me if you have any issues with the update. Also, sorry again for the delay.

    Plugin Author cactus.cloud

    (@bortpress)

    Closing due to inactivity

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Possible to exclude current post?’ is closed to new replies.