Home › Forums › General Issues › PHP errors with ACF text fields › Reply To: PHP errors with ACF text fields
This below custom query gives me a critical page error using an ACF post object set to post ID. I’m beginning to think Elementor queries using ACF are broken, at least with my WordPress install. I’ve ran troubleshooting mode and with all plugins active the Elementor editor page loads but only when this code is commented out.
add_action( 'elementor/query/voicesponsored_filter_2', function ( $query ) {
$voicesponsored_link = get_field( 'voice_sponsored_2', 'voice_options');
$query->set( 'p',$voicesponsored_link);
} );
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.