[ACF incompatibility] Related posts are not showing up
-
I want to link my blog posts to pages. Pages are translated with Polylang, Blog posts are not.
I’ve disabled translations for regular posts using a hook:
add_filter('pll_get_post_types', function ($postTypes) { return array_filter($postTypes, function ($postType) { return $postType !== 'post'; }); });
Since I did that, newly added blog posts are not displayed on the relationship dropdown. I can only see old posts there (the posts that were added before I added this hook).
So I suppose that Polylang adds some language attribute to all queries (including ACF queries) that prevent posts without some Polylang-specific meta field from being queried.
I guess it’s just a matter of using some hook in order to remove that attribute from queries. Could you give me some tips on what filter to use and what is the query attribute?
Thanks!
- The topic ‘[ACF incompatibility] Related posts are not showing up’ is closed to new replies.