Support

Account

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