WordPress.org

Ready to get started?Download WordPress

Forums

Relevanssi - A Better Search
Removing "..." after excerpt?!?! (5 posts)

  1. keysuuh
    Member
    Posted 1 year ago #

    I tried using//
    <?php echo get_the_excerpt(); ?>
    (got that from a post dated a year ago)
    But it doesn't work...

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

  2. keysuuh
    Member
    Posted 1 year ago #

    The dots are annoying :/

  3. Mikko Saari
    Member
    Plugin Author

    Posted 1 year ago #

    You can use the relevanssi_ellipsis filter hook (see user manual here) to change the ellipsis to something else (or to remove it altogether).

    You can also try this:

    <?php echo str_replace('...', '', get_the_excerpt()); ?>

  4. keysuuh
    Member
    Posted 1 year ago #

    How exactly can I add the filters though?

  5. Mikko Saari
    Member
    Plugin Author

    Posted 1 year ago #

    Filters are explained here: http://codex.wordpress.org/Plugin_API#Filters

    But if writing filter functions sounds too complicated, then replacing

    <?php echo get_the_excerpt(); ?>

    with

    <?php echo str_replace('...', '', get_the_excerpt()); ?>

    should work as well.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic