Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same here, missing the view this post button. I used this after every post for several blogs and find it quite cumbersome having to navigate the site to see the live versions of pages and posts.

    Anyone know a way to get it in the yellow notification or perhaps a button beside preview?

    After hours of fiddling, here’s what I used to finally get this working.

    This will list subpages with a link to the title and display the custom field you specify. In this case, my custom field is task. So you change task to the “key” of your custom field

    <?php
     global $wpdb;
     $children = $wpdb->get_results("SELECT * from $wpdb->posts WHERE post_type='page' AND post_parent=$post->ID ORDER BY post_title");
      if($children) {
           foreach($children as $child) {
    	     	 echo '<a href="' . get_permalink($child->ID) . '">' . $child->post_title . '</a><br clear="all">';
    			 echo get_post_meta($child->ID, 'task', TRUE);
    
    	}
      }
     ?>
Viewing 2 replies - 1 through 2 (of 2 total)