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:
- 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).
- A positive search for multiple posts within a set of given IDs. e.g.
[cactus-masonry post_id="42,77,129,1"]
- 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.
- A search negating multiple posts within a set of IDs. e.g.
[cactus-masonry post_id="-42,-37,-128"]
- 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.
Closing due to inactivity