Support » Plugin: ACF Post-2-Post » Seems like it’s not resaving bidirectionally anymore

  • i think the plugin is holding onto old “revisions” or post_status “inherit” instead of resaving it with the current published revision.

    i’m not sure how else to explain it, but when I use it in conjunction with Search and Filter Pro, and call up that same “related_posts” meta I’m overwriting with this plugin, it seems to output dropdown filters with IDs of post revisions interspersed with the actual post.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Huebner


    You’ve lost me. What do you mean by

    and call up that same “related_posts” meta

    I’m going to need a more detailed explanation of what you are seeing.

    Thread Starter guerrilladigital


    Good morning, John. Thanks for the quick response and pardon my delay.

    Here’s an outline of how I’m using this plugin:

    I have two custom post types, “Providers” and “Locations”. I’m using ACF Post-2-Post to relate a health care provider to one or more locations using an ACF “Relationship” field named “related_posts”.

    Everything seems to work correctly, BUT… I also use Search and Filter Pro ( ) – and it creates a way to filter posts on archive or index pages based on criteria. I used the “related_posts” field to filter.

    Everything seemed fine when I launched the site. Post-launch though, the client edited the Locations. Now the “related_posts” filter was showing the posts, but with a bunch of blank options in the select dropdown element.

    I tried to figure out where the problem stemmed.. and looking into the values given for those blank options, it seems that they are post IDs that relate to post revisions of the original Location post. I couldn’t find any record of actual posts in the database, but some of the IDs existed as “inherit” posts it the posts table. Some of the IDs didn’t exist at all, but were one number off from other “inherit” posts in the database.

    I decided to go in and resave all the “Providers” attached to these blank options, and once i resaved them all, everything fell in line. So I think there may be something up with how Post-2-Post saves and deals with revisions of the same posts?

    Does that make sense?

    Plugin Author John Huebner


    I don’t know where the conflict is because I don’t have access to the other plugin. But this plugin will only save values for relationships that are submitted and has no effect on what ACF shows in the field.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Seems like it’s not resaving bidirectionally anymore’ is closed to new replies.