WordPress.org

Ready to get started?Download WordPress

Forums

Achievements for WordPress
[resolved] Change Excerpt Length (3 posts)

  1. thecorkboard
    Member
    Posted 11 months ago #

    Hello-

    In achievement-header.php, there is dpa_achievement_description_excerpt() to display the description of the achievement. Is there a simple way to change this from the default 225 of bp_create_excerpt that you invoke?

    Thanks,
    ~Kyle~

    http://wordpress.org/plugins/achievements/

  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 11 months ago #

    For anyone following along at home, this relates to the old version 2.4 of Achievements. It doesn't relate to the newer 3.x series.

    Kyle: as it just accesses the global, you can make your own function, something like this:
    https://gist.github.com/paulgibbs/c411f1d052b8f4822860

    That's pretty simple ;)

  3. thecorkboard
    Member
    Posted 11 months ago #

    Thank you, Paul, for the example code to follow. It worked like a charm, and I'll bookmark it for later projects.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.