• Resolved christianboyce

    (@christianboyce)


    I have a page that uses Display Posts like so:

    [display-posts include_excerpt=”true” image_size=”thumbnail” wrapper=”div” posts_per_page=”-1″ category=”iPhone and iPad”]

    It works GREAT! Very happy. Except that the post I made last night does not show the “Continue Reading” line underneath it. I experimented by making another post that is just a bunch of text and it did get the Continue Reading line. So I think it’s something in the blog post’s code that causes the problem. The page has an unordered list in it near the top and that seems to be part of the problem. I have also extended the excerpts to be 95 words rather than the standard 55.

    If I make a very very short blog post (one word) I also don’t get the Continue Reading line. So I think it has to do with what the Display Posts does under certain conditions. I don’t think I will be writing any one-word blog posts but still it was interesting to see.

    This is the page that I’m having trouble with:

    http://christianboyce.com/every-blog-post/iphone-ipad-posts

    The post that causes the problem is this one:

    http://christianboyce.com/2016/04/how-to-print-from-iphone.html

    This is not a show-stopper at all but I am curious about it.

    https://wordpress.org/plugins/display-posts-shortcode/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    Display Posts Shortcode does not provide a “Continue Reading” feature by default. That is handled by your theme.

    Also, you should be using the category slug (iphone-and-ipad), not the category name, in the shortcode.

    If you would like to override your theme’s defaults and let Display Posts Shortcode handle it, do the following:

    [display-posts include_excerpt=”true” image_size=”thumbnail” wrapper=”div” posts_per_page=”-1″ category=”iphone-and-ipad” excerpt_length=”95″ excerpt_more=”Continue Reading” excerpt_more_link=”true”]

    It won’t look exactly the same as your theme though since it won’t include the post title in the more link.

    Thread Starter christianboyce

    (@christianboyce)

    OK, now I’m really baffled. But first, thank you for helping me with this. I made a new page to use for testing. The page is http://christianboyce.com/page-for-bill. The page is nearly blank except for a little bit of explanation, and this code (copied from your message above):

    [display-posts include_excerpt="true" image_size="thumbnail" wrapper="div" posts_per_page="-1" category="iphone-and-ipad" excerpt_length="95" excerpt_more="Continue Reading" excerpt_more_link="true"]

    I changed the posts_per_page to 10 and category to “”. Other than that, it’s a copy and paste from what you posted. But, as you will see, the page shows “Continue Reading (post name)” for each blog excerpt, and from what you wrote I should not see it. I changed the excerpt_length to “20” to see what would happen and the answer is… nothing! So, I think something else is controlling my blog post excerpts, even though I trigger the excerpt using your shortcode. My theme is “Aaron” in case that helps.

    c

    Plugin Author Bill Erickson

    (@billerickson)

    Are you running the most recent version of the plugin, 2.6.2? The three parameters (excerpt_length, excerpt_more and excerpt_more_link) were just added to the plugin this week, so if you’re using an older version of the plugin they won’t work.

    I’ve installed the Aaron theme in my local testing environment and here’s what it looks like: http://cl.ly/1l0X3F3A0832

    And here’s what it looks like without the three new parameters (so as it would look on an older version of the plugin): http://cl.ly/1d2v2i2E3m1T

    Thread Starter christianboyce

    (@christianboyce)

    I think we are getting somewhere, though I’m not there yet!

    I’m using 2.5.1 because I was seeing the same “continue reading” line for every post instead of having the respective post titles (that happened when I went to 2.6.2).

    Interesting the way yours looks different than mine. I will have to look hard at the other plug-ins. Could Jetpack be an issue?

    Plugin Author Bill Erickson

    (@billerickson)

    It’s hard to tell. Older versions of this plugin (and the current version if you don’t use excerpt_length or excerpt_more) allow the excerpt to be customized by your theme and plugins.

    I recommend you try 2.6.2 again. Versions 2.6.0 and 2.6.1 had some issues with the new excerpt features, and 2.6.2 was released specifically to fix it in your theme. More information here: https://github.com/billerickson/display-posts-shortcode/issues/110

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘"Continue Reading" line not showing on my latest post’ is closed to new replies.