Conversation
supportHi there, Just want to know if there is any way that I can show some excerpt text from the blog posts underneath the hyperlinked titles when they are listed in the widget. Is this done though a template? Sorry but I don’t know much about the template system. Thanks! https://wordpress.org/plugins/nelio-featured-posts/
You simply need to create a directory named neliofp in your theme and add a file there with the template for printing featured posts. For instance, posts-with-excerpt.php with the following contents (more or less): <?php global $post; ?> <article class="post-<?php echo $post->ID; ?> post type-post status-publish entry" itemscope="itemscope"> <?php // Add image... ?> <h2 class="entry-title"><?php // Print the title here... ?></h2> <p><?php // Print the excerpt here... ?></p> </article> This is only a small example. If you look in our plugin’s source code, you’ll see a folder named template-examples . There you can take a look at the example named title-and-featured-image.php and add the excerpt at the end (adding the <p>...</p> tag right before closing the article tag). I hope this helps!
You simply need to create a directory named neliofp in your theme and add a file there with the template for printing featured posts. For instance, posts-with-excerpt.php with the following contents (more or less): <?php global $post; ?> <article class="post-<?php echo $post->ID; ?> post type-post status-publish entry" itemscope="itemscope"> <?php // Add image... ?> <h2 class="entry-title"><?php // Print the title here... ?></h2> <p><?php // Print the excerpt here... ?></p> </article> This is only a small example. If you look in our plugin’s source code, you’ll see a folder named template-examples . There you can take a look at the example named title-and-featured-image.php and add the excerpt at the end (adding the <p>...</p> tag right before closing the article tag). I hope this helps!