How to store queried custom data and use it in multiple pages?
Though it’s not clear exactly what do you want. But, you can do this by two ways. Make a Function like function wpse_1001(){ $contact = new WP_Query(array( ‘post_type’ => ‘contact’ // ‘post_status’ => ‘publish’ )); while($contact -> have_posts()){ $contact -> the_post(); $watsapp = get_field(‘watsapp_no’); $mobile = get_field(‘mobile_no’); $telephone = get_field(‘telephone_no’); $address = get_field(‘address’); } wp_reset_query(); … Read more