示例#1
1
function get_page_path()
{
    if (is_404()) {
        $page_path = "pages/404.php";
    } else {
        $page_path = get_page_req_path();
    }
    if (is_single()) {
        $wp_post_query = get_post_query(get_page_file());
        $wp_post_query->the_post(get_page_slug());
    }
    return $page_path;
}
示例#2
1
 ">&emsp; <?php 
    the_title();
    ?>
</a></li>
      <?php 
}
?>
      <?php 
wp_reset_query();
?>
		</ul>
		<br>
		<ul>
			<li><span><h1>Exibition<h1></span></li> 
      <?php 
$wp_post_query = get_post_query('exibition', -1);
?>
      <?php 
while ($wp_post_query->have_posts()) {
    $wp_post_query->the_post();
    ?>
				<li><a href="<?php 
    the_permalink();
    ?>
 ">&emsp; <?php 
    the_title();
    ?>
</a></li>
      <?php 
}
?>