- May 22, 2018 at 12:31 am #9810May 22, 2018 at 1:28 pm #9815
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
So, 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
It’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
That 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
- This reply was modified 4 years, 8 months ago by TerryMG.
I tested it earlier today, looks fine.May 22, 2018 at 5:02 pm #9832
Thanks, that took care of the links in the excerpt. You’re the best!May 22, 2018 at 5:03 pm #9833
Great stuff, glad to hear the plugin did the trick 🙂May 23, 2018 at 1:32 pm #9838This reply has been marked as private.May 23, 2018 at 2:04 pm #9839
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
To make sure I’m covering all questions, here is follow-up.
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].
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.
Theme Settings > Blogyou can manually set the length of auto excerpts assuming you have Archive Content set to Excerpt and not Full Content.
Theme Settings > Blog > Archive Post Content > ExcerptUltra will automatically insert ellipsis for you.
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.
As to why the current theme is displaying links and excerpts without issue, I’m not sure. I checked the specifications of
get_the_excerpt();and ran a test in Twenty Sixteen, the tag does strip links.
You must be logged in to reply to this topic.