plugin development – how to catch a data from a array in WordPress

Question

enter image description here

I got page information. but now I can’t print specific data from this array.

$page_details = get_pages( array(
    'post_type' => 'page',
    'meta_key' => '_wp_page_template',
    'hierarchical' => 0,
    'meta_value' => 'template-parts/about.php'
   ));
   echo '<pre>';
    var_dump($page_details);// check the array value
    echo '</pre>';
var_dump($page_details["post_title"]);// it's return null value. this way I am trying catch the specific value. but it is wrong

I was known but recently I forget it. so please help

0
saikat mondal 2 months 2022-10-05T13:10:17-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse