-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
57 lines (56 loc) · 2.61 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php get_header(); ?>
<div id="blog-content-area">
<div class="post-container">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="blogheader">
<div class="blog-img"><?php
if ( in_category( '7' ) ){ the_post_thumbnail('large'); } else { the_post_thumbnail('thumbnail'); }
?></div>
<div class="meta">
<div class="post-category"><?php the_category(' '); ?></div>
<div ><h1><?php the_title(); ?></h1></div>
<div class="blog-meta-info">By <?php the_author(); ?><?php //echo ' | ' . the_date(); ?></div>
</div>
</div>
<div class="post">
<p><?php the_content(); ?></p>
<div class="abouttheauthor">
<img src="../wp-content/themes/_RPWordpress1/img/linda.jpg">
<div class="abtinfo">
<h4>Linda Fau</h4>
<p><i>Owner/Blogger</i></p>
</div>
<div class="abtabout">
<p>With a passion for Rock and Roll with a purpose-driven message, I've dedicated myself to providing you with all the best news and resources possible for Rock 'n Roll with a Purpose. Rock on!</p>
</div>
</div>
</div>
<?php endwhile; else : ?>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>
</div>
<?php
$args = array(
'post_type' => 'post',
'posts_per_page' => 5,
);
$query_rnb = new WP_Query( $args );
?>
<div class="lp_block">
<div class="latestposts">
<h3 class="hp-heading">Latest Posts<br class="dhide"><i class="material-icons dhide">keyboard_arrow_down</i></h3>
<?php if( $query_rnb->have_posts() ) : while( $query_rnb->have_posts() ) : $query_rnb->the_post(); ?>
<div class="lpitem">
<div class="lpthumb"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a></div>
<div class="lpmeta">
<div class="post-category"><?php the_category(' '); ?></div>
<br>
<a href="<?php the_permalink(); ?>"><h2 class="box"><?php the_title(); ?></h2></a>
<div class="lpmetainfo"><p><?php the_author(); ?> | <?php echo get_the_date(); ?></p></div>
</div>
</div>
<?php endwhile; endif; wp_reset_postdata(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>