WebberZone / contextual-related-posts

Contextual Related Posts WordPress plugin
https://webberzone.com/plugins/contextual-related-posts/
38 stars 23 forks source link

Creating bi-directional manual post connection #181

Open benjaminpick opened 1 year ago

benjaminpick commented 1 year ago

Is your feature request related to a problem? Please describe. I am using manual related posts a lot. And I realized that 95% of the times I also would like to create a manual post in the other direction, i.e. "1 is related to 2", and "2 is related to 1". (The remaining 5% is when 1 post has more related posts than would be shown anyway.)

Describe the solution you'd like I would love a way of making the manual post connections bi-derectional. Two ideas:

  1. Either automatic

    • adding it as a setting
    • when active, the text in italics on the post edit screen will say so (e.g. adding "That post IDs will also get a manual related post to the current post.")
  2. Or semi-automatic

    • creating a button under the CRP tools
    • when clicked, it gives a notice "Added 14 manual post connections."

Both options would add the ID at the end of the manual related post list, if it is not already in that list.

What do you think?

ajaydsouza commented 1 year ago

I like the idea. And, I've just marked it for implementation.

The option 1 is likely what I'd explore with a checkbox in the metabox that will allow a user to push the current post ID to the manual related.

benjaminpick commented 1 year ago

Thanks! One more idea - in the 1% of the cases where I do not want a bi-directional linkage, I could add the ID on the list of "exclude POST ids".

Oh, currently this doesn't work, when the ID is in both lists the link is shown. Is this intended behaviour?