Last active
July 26, 2017 17:32
-
-
Save marisqaporter/81fb9a2fd28611a79307b14a023f3d80 to your computer and use it in GitHub Desktop.
fa html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>How We Work</h2> | |
<!-- this is where I inserted my icon --> | |
<i class="fa fa-gears work-fa" aria-hidden="true"></i> | |
<!-- end Font Awesome icon --> | |
<?php | |
$args = array( | |
'post_type' => 'work_items', // enter your custom post type | |
'posts_per_page'=> '3', // return only 1 post | |
'orderby' => 'rand' | |
); | |
$loop = new WP_Query( $args ); | |
if( $loop->have_posts() ): | |
?> | |
<div class="row client-row center-xs top-xs"> | |
<?php | |
while( $loop->have_posts() ): $loop->the_post(); global $post; | |
?> | |
<div class="col-xs-12 | |
col-sm-12 | |
col-md-12 | |
col-lg-4"> | |
<div class="item-box"> | |
<?php the_title('<h5>', '</h5>'); ?> | |
<?php the_content('<p>', '</p>'); ?> | |
</div> | |
<!-- end container --> </div> | |
<?php | |
endwhile; | |
?> | |
</div> | |
<?php | |
endif; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment