Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="leftCol">
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <h1><?php the_title(); ?></h1>
- <?php endwhile; endif; ?>
- <?php// $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
- <?php //$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
- <?php $args = array(
- 'post_type' => array('post', 'project'),
- 'orderby' => 'date',
- 'order' => 'DESC',
- 'paged' => $paged);
- ?>
- <?php $loop = new WP_Query($args); ?>
- <?php while ($loop->have_posts()) : $loop->the_post(); ?>
- <?php //$showBlog = get_field('show_on_blog'); //var_dump($loop);
- echo get_post_type(); ?>
- <?php if ((get_post_type() == 'post')) : ?>
- <div class="post">
- <h2 class="post-title">
- <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
- </h2>
- <div class="info cf">
- <div class="share-this">
- <span class='st_twitter' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' ></span>
- <span class='st_facebook' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' ></span>
- <span class='st_yahoo' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' ></span>
- <span class='st_google_bmarks' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' ></span>
- <span class='st_email' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' ></span>
- <span class='st_sharethis' st_title='<?php the_title(); ?>' st_url='<?php the_permalink(); ?>' ></span>
- </div>
- <!--<a class="autor" href="<?php /* echo get_author_posts_url(get_the_author_meta('ID')); ?>"><?php the_author_meta('display_name'); */?></a> -->
- <span class="date"><?php the_date(); ?></span>
- <?php
- $num_comments = get_comments_number();
- if ($num_comments == 0) {
- $comments = __('No Comments');
- } elseif ($num_comments > 1) {
- $comments = $num_comments . __(' Comments');
- } else {
- $comments = "1 Comment";
- }
- $write_comments = '<a class="coment" href="' . get_comments_link() . '">' . $comments . '</a>';
- echo $write_comments;
- ?>
- <?php if (get_tags()): ?>
- <span class="tags"><?php the_tags(); ?></span>
- <?php endif; ?>
- </div> <!-- info -->
- <?php the_excerpt();?>
- </div><!-- post -->
- <?php endif; endwhile;
- wp_reset_postdata(); ?>
- <?php
- next_posts_link('Older Posts');
- previous_posts_link('Newer Posts');
- ?>
- <!--
- <div id="nav-above" class="navigation">
- <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">←</span> Older posts', 'gdesigns')); ?></div>
- <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">→</span>', 'gdesigns')); ?></div>
- </div><!-- #nav-above -->
- </div> <!-- left-col -->
Add Comment
Please, Sign In to add comment