Home>Support>Easy way to set excerpt length per category?

Easy way to set excerpt length per category?

By Yan White, 6 years ago. Last reply by Alex S, 6 years ago.

Hi,

I am creating a blog site using Unwind and have links pointing to post categories.

For the home page, setting excerpt is fine (though there is a current open bug with displaying both ‘read more’ and ellipsis).
For another category I want to display the videos and full text in the category page. Currently, videos are not shown in excerpt and as far as I can tell excerpt / excerpt length is a global setting.

Is there an easy way to handle this? Would you suggest using a widget (if such exists) or getting into the php template files?

Thanks

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 6 years, 9 months ago Alex S
    Hi, I Work Here

    Hi Yan,

    Videos cannot show in the automatic excerpt as they’re stripped by WordPress. You’ll need to manually set an excerpt for the videos to appear (specifically, using the More Tag).

    The excerpt length is a global setting which can be found by navigating to WP AdminAppearanceCustomize, Theme SettingsBlog and adjust the Excerpt Length.

    You can adjust this setting using PHP on a category by category basis by using PHP but, unfortunately, this is beyond the scope of the support we’re able to offer on our free forums. There is a fair amount of custom work involved.

    We do offer this level of support to our premium users, so if you’d like to upgrade to SiteOrigin Premium, then I can help you over email support.

    If you’d prefer not to upgrade to SiteOrigin Premium, then you can hire a WordPress developer from Codeable. They’ll charge you an hourly rate for any work done.

    though there is a current open bug with displaying both ‘read more’ and ellipsis).

    Unfortunately, that’s intentional. Only one of them will appear at a time.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More