Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Homepage
- *
- * @package Betheme
- * @author Muffin group
- * @link http://muffingroup.com
- */
- get_header();
- ?>
- <!-- #Content -->
- <div id="Content">
- <!-- Page Editor Section -->
- <div class="sections">
- <div class="entry-content" itemprop="mainContentOfPage">
- <?php
- while ( have_posts() ){
- the_post(); // Post Loop
- mfn_builder_print( get_the_ID() ); // Content Builder & WordPress Editor Content
- }
- ?>
- </div>
- </div>
- <div class="content_wrapper clearfix">
- <!-- .sections_group -->
- <div class="sections_group">
- <div class="entry-content" itemprop="mainContentOfPage">
- <div class="section the_content has_content">
- <div class="section_wrapper">
- <div class="the_content_wrapper">
- <div id="post-list">
- <h1>Latest Update</h1>
- <?php
- $query_args = array(
- 'post_type' => 'post'
- );
- $the_query = new WP_Query( $query_args );
- ?>
- <ul>
- <?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
- <li <?php post_class(); ?>><a href="<?php the_permalink(); ?>" title="link to <?php echo the_title(); ?>"><i class="fa fa-arrow-circle-o-right"></i> <?php echo the_title(); ?></a></li>
- <?php endwhile; ?>
- </ul>
- <?php wp_reset_postdata(); ?>
- <?php else: ?>
- <article>
- <h1>Sorry...</h1>
- <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
- </article>
- <?php endif; ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- .four-columns - sidebar -->
- <?php get_sidebar(); ?>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment