Support » Fixing WordPress » wp_list_pages with ACF true/false statement

  • I have a wp_list_pages, and I add a true/false ACF field to the elements. I would like to show/hide the element depends of the state. Is that possible somehow?
    That is my default args and my ACF filed name is hide_from_list

    $args = array(
                'depth' => 2,
                'title_li' => $title,
                'exclude' => $parent_id,
                'child_of' => $parent
            );
    
    wp_list_pages($args);

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wp_list_pages with ACF true/false statement’ is closed to new replies.