Exemplo n.º 1
0
<?php

/* Template name: Blog View */
global $wp_query;
extract(etheme_get_page_sidebar());
get_header();
?>
<div class="container <?php 
echo $sidebarname;
?>
">
    <div class="row">
        <div class="blogposts span12 grid_content without-sidebar">
            <?php 
$post_id = $wp_query->get_queried_object_id();
$title = get_post_field('post_title', $post_id);
/* ?>
   <h1 class="page-title">asdf<?php echo $title; ?></h1>
   <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); */
?>
            <?php 
//the_content();
?>
            <?php 
//wp_link_pages( array( 'before' => '' . __( 'Pages:', ETHEME_DOMAIN ), 'after' => '' ) );
?>
            <?php 
$args = array('post_type' => 'page', 'post__in' => array(87, 89, 91, 93, 95), 'orderby' => 'ID', 'order' => 'ASC', 'posts_per_page' => 5);
$blogposts = new WP_Query($args);
if ($blogposts->have_posts()) {
    while ($blogposts->have_posts()) {
Exemplo n.º 2
0
<?php

/**
 * The main template file.
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 */
extract(etheme_get_page_sidebar(true));
get_header();
?>

        <div class="container <?php 
echo etheme_get_custom_field('widget_area');
?>
">
            <div class="row">
	            <?php 
blog_breadcrumbs();
?>
                <?php 
if ($position && $responsive == 'top') {
    ?>
                    <div class="span3 sidebar_grid sidebar_<?php 
    echo $position;
    ?>
">