Show posts of parent in edit.php

If you are using just using 4 posts, I think that schools would better be suited as taxonomy terms rather than a post type. Associate your Posts with the school tax term. I would then create custom templates for each of those terms. taxonomy-schools-cambridge.php taxonomy-schools-teeside.php taxonomy-schools-newcastle.php taxonomy-schools-sunderland.php Within those templates, use a WP_Query object to … Read more

How to wrap this Link with an Image?

Try passing in the image into the functions themselves: <?php $previous_image = “<img src=”http://domain.com/path/to/image/” alt=”Previous Posts”>”; $next_image = “<img src=”http://domain.com/path/to/image/” alt=”Newer Posts”>”; ?> <span class=”nav-previous”><?php previous_image_link( false, $previous_image ); ?></span> <span class=”nav-next”><?php next_image_link( false, $next_image ); ?></span>

get latest post in category date

Unfortunately no; the categories are stored separately in the database and would each require their own query. I like to stick to built in wordpress functions as much as possible, but you could make a custom query to find the latest post from each category using the wp_term_relationships table. It stores the post id (object_id) … Read more