Filter relationship field content by post status

This commit is contained in:
Tetrakern 2023-10-03 18:03:28 +02:00
parent 0276e841b3
commit ead60c0481

View File

@ -61,7 +61,7 @@ add_action( 'acf/include_fields', function() {
3 => 'fcn_recommendation',
4 => 'post',
),
'post_status' => '',
'post_status' => 'publish',
'taxonomy' => '',
'filters' => array(
0 => 'search',
@ -150,7 +150,7 @@ add_action( 'acf/include_fields', function() {
'post_type' => array(
0 => 'page',
),
'post_status' => '',
'post_status' => 'publish',
'taxonomy' => '',
'filters' => array(
0 => 'search',
@ -259,6 +259,7 @@ add_action( 'acf/include_fields', function() {
4 => 'post',
5 => 'page',
),
'post_status' => 'publish',
'taxonomy' => '',
'filters' => array(
0 => 'search',