• Resolved Hugo Callens

    (@prettiggeleerd)


    When adding a post grid block to a post all posts in the chosen category are displayed, including the post containing this block (if it belongs to this category). So the post appears twice, once as the post content itself and once as part of the post grid block.

    In order to be able to use this block as a related posts block I need a way to exclude the current post.

    Or, even better, make it a reusable block by inheriting the current category of the post it is added to instead of adding a category manually.

    Is there a way to do this?

    • This topic was modified 5 years, 5 months ago by Hugo Callens.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Parris

    (@mindctrl)

    Hi @prettiggeleerd

    If you use the “Number of items to offset” option and set it to 1, that should fix it. Let me know if you have any issues with that.

    Thread Starter Hugo Callens

    (@prettiggeleerd)

    Hi @mindctrl
    I’m afraid that doesn’t do the trick.
    Imagine a category with 4 posts.
    If post 1 is displayed the post grid block should contain posts 2, 3 and 4. In this case I could use offset.
    But if post 3 is displayed the post grid block should contain posts 1, 2 and 4. This cannot be achieved with offset I think.

    Please correct me if I’m wrong.

    Plugin Author John Parris

    (@mindctrl)

    @prettiggeleerd Ah yes, I see what you’re saying now. Basically we need to not show a post in the grid if it’s being displayed within that same post.

    Thanks for the report. I’ll add this to our list and see about getting it in an update in the near future.

    Thread Starter Hugo Callens

    (@prettiggeleerd)

    @mindctrl Thanks, I am looking forward to it!
    Please also consider my second suggestion: inheriting the category of the post the block is added to instead of adding a category manually.

    • This reply was modified 5 years, 5 months ago by Hugo Callens.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post grid block – exclude current post’ is closed to new replies.