Home › Forums › ACF PRO › ACF Pro: Relationship Field does not accept/ save CPT › Reply To: ACF Pro: Relationship Field does not accept/ save CPT
if you want to NOT have the cpt translatable by polylang you need to skip it in parse_query hook like this:
function skip_cpts( $query ) {
if ( get_post_type() == "event" ) $query->set( 'lang', '' );
}
add_action( 'parse_query', "skip_cpts", 0 );
thanks to polylang support if found this solution helpful
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.