WordPress.org

Ready to get started?Download WordPress

Forums

Collapse-O-Matic
[resolved] How to insert excerpt? (5 posts)

  1. 3x7
    Member
    Posted 1 year ago #

    How to insert excerpt code to the expand area?

    http://wordpress.org/extend/plugins/jquery-collapse-o-matic/

  2. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    how are you inserting your excerpt code in a post or page?

  3. 3x7
    Member
    Posted 1 year ago #

    Sorry for late reply...

    I insert them with <?php the_excerpt() ?>

  4. Baden
    Member
    Plugin Author

    Posted 1 year ago #

    then use do_shortcode: http://codex.wordpress.org/Function_Reference/do_shortcode
    with get_the_excerpt: http://codex.wordpress.org/Function_Reference/get_the_excerpt
    like so:

    <?php echo do_shortcode('[expand title="Click Me"]'.get_the_excerpt().'[/expand]'); ?>
  5. 3x7
    Member
    Posted 1 year ago #

    will try that out...

    Thank you again and again :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.