vectrolux
Forum Replies Created
-
Forum: Plugins
In reply to: [ACF Post-2-Post] Deleting and Changing Post TitlesI’m not sure what is causing the issue. FacetWP allows us to filter down a query of posts based on taxonomies and ACF fields. It’s limited to a specific query per page. I’m not sure how it would prevent the posts from showing in queries outside the one with the CSS class it’s linked to.
The issue I am having is I want to filter results from these post2post relationship fields and they are not updating on the backend unless the related post is opened and re-saved. I thought maybe it had to do with the way I am using your plugin.
Forum: Plugins
In reply to: [ACF Post-2-Post] Deleting and Changing Post TitlesThanks again. Should it cause problems that I have a relationship field for both Conditions and Treatments in the Locations post type? I also have Locations as a related post type in both the Conditions and the Treatments post types. The field is the same name in each just not the same available post types.
In a somewhat related issue we are using the plugin FacetWP and it is not working as we hoped because the two way relationships are not being updated when saved. The developers of that plugin asked about hooks for FacetWP to latch onto.
Ideally there’d be hooks that fire when a post has been modified, within the add_relationship() and remove_relationship() methods, e.g.
add_action( ‘acf/post2post/relationship_updated’, $post_id ); // fires when a referenced (bi-directional) post has been updated
Forum: Plugins
In reply to: [ACF Post-2-Post] Deleting and Changing Post TitlesThank you for your reply. I will look into modifying my queries to to check post status.
The other issue I am having is that the relationships do not seem to be showing up in the both posts until they are opened and updated. Is this normal? What I mean is I open post A and add a relationship to post B. It does not show up in post B until I open it and update the post. Shouldn’t this relationship appear in both without having to update both posts?