Remove a link from a page ID used within an array [closed]
I have updated your code please try this and let me know if any query <div class=”row”> <?php $pages = array(54,55,56,57,58,74,75,76,77,78); $i = 1; foreach ($pages as $page) { $post_data = get_post( $page ); //print_r($post_data); $title = $post_data->post_title; $content = $post_data->post_content; $string = substr($content, 0, 0); $themeta = get_post_meta($page,true); $metalink = $themeta[0]; if (has_post_thumbnail($page) ): … Read more