I’ve got a problem that I can’t figure out…
I’ve added the “add_post_type_support( ‘page’, ‘excerpt’ );” to my functions.php file in order to get the possibility to write excerpts for pages. That’s working fine…
However, I want to get the title, thumbnail and excerpt from a specific page to show up in a div/widget area on my homepage. So far I’ve got it working with the thumbnail and title, but I can’t get the excerpt working..!
I’ve tried all kinds of code after googleing. Here’s how it curruntly looks:
<?php echo get_the_post_thumbnail( $page_id = 5 ); ?>
<?php echo get_the_title( $page_id = 5 ); ?>
<?php echo the_excerpt( $page_id = 5 ); ?>
Thanks in advance for any hints/tips!
- The topic ‘PAGE excerpt in widget area?’ is closed to new replies.