WordPress.org

Ready to get started?Download WordPress

Forums

UnPointZero Slider
Use Excerpt Instead of Content? (6 posts)

  1. coreymcollins
    Member
    Posted 2 years ago #

    So, right now the slider is using the post content to grab the description displayed. Is there a way to grab the excerpt instead of the content?

    http://wordpress.org/extend/plugins/unpointzero-slider/

  2. UnPointZero
    Member
    Plugin Author

    Posted 2 years ago #

    Added on the next version currently in beta :).

  3. coreymcollins
    Member
    Posted 2 years ago #

    Awesome! Looking forward to it. The plugin is really smooth and easy to use. That'll just be icing on the cake :-)

  4. UnPointZero
    Member
    Plugin Author

    Posted 2 years ago #

    I'll add this function on the next official update ( Think I'll do it tonight or tomorrow :) ).

    C ya !

  5. mkjar
    Member
    Posted 2 years ago #

    Not all my posts have manual excerpts so I wanted the description to default back to the cropped content if the post excerpt field is empty.
    I added a 'AND if the excerpt is not empty' to the 'if excerpt option is selected' line (line 293 in upzSlider.php)
    from:

    if($post_excerpt==1 ) {
    $content = tronc_str(__( $post->post_excerpt),$slider_desc_max_char);

    to:

    if($post_excerpt==1 && !empty($post->post_excerpt) ) {
    $content = tronc_str(__( $post->post_excerpt),$slider_desc_max_char);
  6. UnPointZero
    Member
    Plugin Author

    Posted 2 years ago #

    Hi again mkjar !

    Thanks for this :) I'll add your code to the next slider version !

    C ya

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic