• I inserted a “more” quicktag in the post “Music for a While” on my home page (standrews.se), but when I look at the home page there is nothing to show that there is more text to come by clicking on the post. I’d really like to put in a link text, just for this one post, with:
    <!–more Programme here–> but that does not work either. Can you help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi barmoss. Can you post a link to your site? Thanks.

    Thread Starter barmoss

    (@barmoss)

    Here is a link to the site.
    I also notice that when I have a link in a post, it does not show up on the home page. Is that a problem with this particular theme?

    The reason the “more” quicktag doesn’t work is because auto-generated excerpts have all shortcodes and tags removed. The easiest way to get around this is to create a manual excerpt and then apply the “more” link using a custom function. You should be using a child theme that has a functions.php file. You can easily create a child theme from within the theme (let me know if you need any info on that).
    1. In the post editor make sure Screen Options > Excerpt is enabled.
    2. Copy the post text that you want to show in the post summary to the Excerpt option field.
    3. Add this to the end of your child theme functions.php file:

    //display read more link when there is a manually entered exceprt
    function excerpt_read_more($excerpt) {
      if (has_excerpt() && !is_attachment()) {
        $excerpt .= '… <a href="' . get_permalink() . '">Programme here</a>';
      }
      return $excerpt;
    }
    add_filter('get_the_excerpt', 'excerpt_read_more');

    Your post summary should then look like this with a link to the full post:

    Music for a While
    “Music for a while” – a taste of Early English Music by Dowland, Purcell and Handel.… Programme here

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘No text shown for quicktag’ is closed to new replies.