use query_posts to return a post OR a page by ID May 28, 2022 by Tarik Billa Try this: query_posts(array( 'p' => $topright, 'post_type' => array('post', 'page'), ));