diff --git a/loop.php b/loop.php index fa00fd8..e989b68 100644 --- a/loop.php +++ b/loop.php @@ -61,11 +61,13 @@ -
-
-

-
-
+ +
+
+

+
+
+ diff --git a/search.php b/search.php index f053649..17e9f9a 100644 --- a/search.php +++ b/search.php @@ -50,7 +50,7 @@ - if ($wp_query->found_posts > 0){ ?> + if ($wp_query->found_posts > 0){ ?>

Not quite what you're looking for?

@@ -72,6 +72,51 @@
+ + +
+ +

Latest from the blog

+
+ 4, + 'post_type' => 'post', + 'post_status' => 'publish' + ) ); + + foreach ( $latest_blog_posts as $blog_post ) { + $post_thumbnail_url = get_the_post_thumbnail_url( $blog_post->ID, 'medium' ); + $post_thumbnail_url_full = get_the_post_thumbnail_url( $blog_post->ID ); + $dominant_color = get_post_meta( $blog_post->ID, 'dominant_color', true ); + $dominant_color_css = str_replace('[', 'background-color:rgb(', $dominant_color); + $dominant_color_css = str_replace(']', ')', $dominant_color_css); + + + ?> +
+
+ +
+ <?php echo $blog_post->post_title; ?> +
+
+
+
+ post_title; ?> +
+

post_excerpt; ?>

+
+
+
+ +
+

Visit the blog

+ +
+