This file contains hidden or 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
function add_custom_content_to_analysis( $content ) { | |
global $post; | |
$custom = get_post_custom( $post->ID ); | |
$custom_content = ''; | |
foreach( $custom as $field ) | |
{ | |
$custom_content .= $field[0].' '; | |
} | |
return $content . ' ' . $custom_content; | |
} |
This file contains hidden or 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
<?php if (is_home() || is_single()) { ?> | |
<?php } else { ?> | |
<?php } ?> |
This file contains hidden or 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
<?php | |
$first_img = true; | |
while($first_img && has_sub_field('post_images')): ?> | |
<a href="<?php the_permalink(); ?>"> | |
<img class="img-responsive" src="<?php | |
$image = get_sub_field('image'); | |
echo $image['sizes']['blog-lg']; | |
?>" alt="<?php echo $image['alt']; ?>" /> | |
<?php $first_img = false; ?> |
This file contains hidden or 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
<?php echo excerpt(20); ?> | |
<?php echo content(20); ?> |
This file contains hidden or 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
h1 span { | |
text-decoration: underline; | |
} |
This file contains hidden or 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
<div class="progress_bar_container"> | |
<div class="progress_bar"></div> | |
</div> |
This file contains hidden or 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
.back-to-top { | |
visibility:hidden; | |
} |
This file contains hidden or 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
<ul class="fa-round-icons"> | |
<li class="fa-round-icon fa-2x"><a target="_blank" href="#"><i class="fa fa-twitter"></i></a></li> | |
<li class="fa-round-icon fa-2x"><a target="_blank" href="#"><i class="fa fa-facebook"></i></a></li> | |
<li class="fa-round-icon fa-2x"><a target="_blank" href="#"><i class="fa fa-instagram"></i></a></li> | |
</ul> |
This file contains hidden or 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
<?php | |
$args = array( 'numberposts' => 1, 'category_name' => 'food-of-the-week' ); | |
$postslist = get_posts( $args ); | |
foreach ($postslist as $post) : setup_postdata($post); ?> | |
<h4><?php the_time('D, F jS, Y') ?></h4> | |
<h3><?php the_title(); ?></h3> | |
<p><?php echo bm_better_excerpt(431, ' ... ') ?></p> | |
<a href="<?php the_permalink(); ?>">Learn More</a> |
This file contains hidden or 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
if($variable !== '') { | |
echo $variable; | |
} |