I am trying to get the excerpt of a blog post using the get_the_excerpt and it just returns blank every time and i cant work out what i am doing wrong. Here it was i got:
<div class="col-sm-12"> <?php $blogPost1 = wp_get_recent_posts( array( 'numberposts' => 1, 'category' => 42, 'orderby' => 'post_date', 'order' => 'DESC' ) ); ?> <h1><?php echo $blogPost1['post_title']; ?></h1> <br> <?php echo get_the_excerpt( $blogPost1['ID'] ); ?> <br> </div>
https://youtu.be/BF2Ksrxu_QY <div></div> <div>Ok, so I’m supposed to be writing a review for this month’s film review- but I’m genuinely struggling to keep a straight face, let alone to not just crack up laughing. ‘Why?’, you may ask; well, the reason is: this month’s film is <i>The Snowman</i>, and I don’t think I’ve laughed so hard at something so unintentionally funny, in such a long time. Yes, I know what you’re thinking- but isn’t <i>The Snowman</i> that new crime thriller film with what’s-his-name-<i>Fassbender</i> in it? And the answer is yes, it is- but I think the filmmakers have missed a trick here, it really should’ve just been made as an intentional comedy!</div> <div></div> <!--more--> <div>It is safe to say that when I heard Swedish Director, <i>Tomas Alfredson</i> (who has made such greats as: <i>Tinker Tailor Soldier Spy</i> and <i>Let The Right One In</i>), was going to be taking the helm of this project, I was excited to watch the finished product (despite the fact that <i>Martin Scorsese</i> had been the original Director on board); however the Crime novel, penned by Norwegian writer, <i>Jo Nesbø</i> (which also happens to be the 7th book in the ‘Detective Harry Hole’ series), was not in safe hands- as it turns out.</div>
I am not sure what im doing wrong or what I should be doing instead.