Support » Plugin: Achievements for WordPress » Change Excerpt Length

  • Resolved thecorkboard

    (@thecorkboard)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Paul Gibbs

    (@djpaul)

    BuddyPress Lead Developer

    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 😉

    thecorkboard

    (@thecorkboard)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Excerpt Length’ is closed to new replies.