• I decided I wanted to do an “Important Posts Spotlight”. In my theme, no way to do category blog list. I do like this. It’s simple to put Post ID’s in.

    It pulls excerpts. So, it pulled the 4 articles I want to spotlight. Looks nice enough.

    Idea? Would be nice if there was a “Read More” link option available. ??

    I just installed this. Excerpts look very nice on a page. (I’ll try to figure how I can use it.)

    Think I”ll use it for a page where I spotlight articles… like a news page… where ppl can go to see posts I think important.

    Also, people do check my Archives pages… and I use Content Views for that. Think I can use this on my Archives page with Content View shortcode… such nice excerpts!… and put my “Important Posts Spotlights” above the full list.

    Would be awesome if a shortcode not only pulled the excerpt… but had a read more link. ??

    Thank you!

    https://www.ads-software.com/plugins/posts-in-page/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Patrick Jackson

    (@pjackson1972)

    Hi laura.lee,

    I’m glad to hear you like the plugin, and I like your idea. We’ll think about ways to make it easier to add a Read More link.

    In the mean time, there are a couple of ways to add a Read More link right now. First, you can customize the plugin template and add your own read more link after the the_excerpt() call.

    <div class="entry-summary">
        <?php the_excerpt(); ?>
        <a class="more-link" href="<?php the_permalink();?>"><?php _e('Continue reading');?> <?php the_title();?></a>
    </div>

    If you only want the link to show when your content exceeds the cutoff for the excerpt, you can add the following to your functions.php file in your theme.

    function excerpt_ellipse($text) {
       return str_replace('[...]', ' <a href="'.get_permalink().'">Continue...</a>', $text);
    }
    add_filter('get_the_excerpt', 'excerpt_ellipse');
Viewing 1 replies (of 1 total)
  • The topic ‘Idea?’ is closed to new replies.