WordPress.org

Ready to get started?Download WordPress

Forums

Relevanssi - A Better Search
[resolved] Set excerpt length (2 posts)

  1. teeli
    Member
    Posted 1 year ago #

    Hi,

    Is it possible to set Relevanssi's excerpt length through a function (or action, filter ...)?

    I have website using Relevanssi and it has a mobile version using a separate mobile theme. I'd like the excerpt to be shorter on the mobile site than it is on the main site, instead of the same global setting for both themes.

    http://wordpress.org/extend/plugins/relevanssi/

  2. Mikko Saari
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, you can use the pre_option_relevanssi_excerpt_length and pre_option_relevanssi_excerpt_type filters. There's no builtin filter hook in Relevanssi, but you can use the pre_option filters with any option in WordPress, it's a very powerful feature.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.