Custom Single Page

April 6, 2010

In a recent comment, we were asked if there is a way to do the custom single page based on the custom author page. Depending on your WordPress version, this may or may not be implemented already, but either way, the solution can be found below:

global $wp_query;
$curpost = $wp_query->get_queried_object();
    //Default single page

The basic theory is the same, get the page ID. Check if single-ID.php exists. If it does, include it. If not, do default author code.

Stay in Touch!

Subscribe to our newsletter.

Solutions Architecture

browse through our blog articles

Blog Archive