- This topic has 10 replies, 2 voices, and was last updated 6 years, 4 months ago by Andrew Misplon.
- AuthorPosts
- May 22, 2018 at 12:31 am #9810
TerryMGParticipantSorry, I’m not sure if this is a theme question or a Page Builder issue.
On my home page, I am using the SiteOrigin post-loop widget to display the News category posts. If I set the Customizing –> Theme Settings –> Blog to display the Full Post Content, links within the post show up as links just fine. If I change them to Post Excerpt, the links show up in the excerpt as plain text, with no link. If I click through to the full post page, the links are there. In my old theme (I’m converting to Ultra), the links ARE in the excerpts, so I don’t think it’s WordPress.
Also, I’ve set the it so that it’s supposed to display Date, Author and Categories, but only Date and Author show up.
May 22, 2018 at 1:28 pm #9815
Andrew MisplonKeymasterHi Terry
Categories and tags are unfortunately only displayed on the single post page at the end of the post which is why aren’t seeing them in the top post meta.
Unfortunately, it’s the default behavior of get_the_excerpt(); the WordPress function being used, to strip HTML tags. This won’t be a problem when adding a manual excerpt, it’s only an issue with automatic excerpts.
Perhaps give the following plugin a try, it’ll help with this particular challenge: https://wordpress.org/plugins/advanced-excerpt/. I tested it now, all good.
May 22, 2018 at 4:41 pm #9820
TerryMGParticipantSo, even though under theme settings there is an option to display “post categories”, it’s not implemented? That’s confusing. I’ll try the plugin, thanks.
May 22, 2018 at 4:44 pm #9822
Andrew MisplonKeymasterIt’s implemented on the single post page: https://demo.purothemes.com/ultra/a-trip-to-the-city/. Scroll to the bottom of the post, the category is Urban, the tag is Grey. The setting controls the categories which in Ultra are located at the bottom of the single post.
May 22, 2018 at 4:54 pm #9828
TerryMGParticipantThat plugin hasn’t been updated in over 2 years – can you confirm that it works with the theme? Sorry, you did say you tested it and that it was all good.
May 22, 2018 at 4:55 pm #9830
Andrew MisplonKeymasterI tested it earlier today, looks fine.
May 22, 2018 at 5:02 pm #9832
TerryMGParticipantThanks, that took care of the links in the excerpt. You’re the best!
May 22, 2018 at 5:03 pm #9833
Andrew MisplonKeymasterGreat stuff, glad to hear the plugin did the trick 🙂
May 23, 2018 at 1:32 pm #9838
TerryMGParticipantThis reply has been marked as private.May 23, 2018 at 2:04 pm #9839
Andrew MisplonKeymasterHi Terry
Ultra is already quite a lot to filter the excerpt so it’s possible we might run into problems with a plugin doing the same.
To take it back to the beginning. For auto excerpts, Ultra uses
get_the_excerpt();
. That core WP function will remove links, unfortunately. So what are the options to get links into the excerpt without a plugin:1. Use manual excerpts, edit each post, click Screen Options top right, ensure the Excerpt checkbox is enabled and then scroll down to insert a manual excerpt.
2. Change Theme Settings > Blog to use Full Content instead of Excerpt and then insert a read more tag into each post where you want to split the content.
May 23, 2018 at 2:14 pm #9840
Andrew MisplonKeymasterTo make sure I’m covering all questions, here is follow-up.
Forum
If possible, please try saving private replies for sending a link. It’s quite hard for others to follow along otherwise. If you’ve upgrade to premium, you’re welcome to use email at any time. [email protected].Screenshots
It’s quite challenging for me to get a quick overview of any support issue using images, links are best 99% of the time. This is because there is usually a code inspection that goes along with any page inspection, this can’t be done from images.Excerpt Length
AtTheme Settings > Blog
you can manually set the length of auto excerpts assuming you have Archive Content set to Excerpt and not Full Content.Ellipsis
If usingTheme Settings > Blog > Archive Post Content > Excerpt
Ultra will automatically insert ellipsis for you.Read more
You mentioned My read more tags are showing up appropriately. If you’re using more tags, Archive Post Content should ideally be set to Full Content.Current Theme
As to why the current theme is displaying links and excerpts without issue, I’m not sure. I checked the specifications ofget_the_excerpt();
and ran a test in Twenty Sixteen, the tag does strip links. - AuthorPosts
You must be logged in to reply to this topic.