Support » Plugin: WP Carousel » [Plugin: WP Carousel] Page Excerpts?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author sumolari


    I haven’t used that page-excerpt plugin before, so I don’t know how it works. I would try it and improve WP Carousel to make them compatible, but I’m a bit busy this month, so I think I will not be able to do that until december.

    In any case, if Page Excerpt uses WordPress’s custom fields to store the excerpt of the pages, it will be really easy to use them as description.

    WP Carousel tries to load the value of custom field WP_CAROUSEL_CAROUSEL_TEXT and use it as description for any content, but as in most of the cases that custom field is empty, WP Carousel also loads the excerpt of the post.

    WP_CAROUSEL_CAROUSEL_TEXT is a constant, defined in wp-carousel.php near line 71. Just change “wp_carousel_carousel_text”, the value of that constant with the name of the custom field that Page Excerpt uses and then WP Carousel will use the excerpt of the pages.

    But this will only work if in fact Page Excerpt plugin uses custom field, and I’m not sure about that as I haven’t used that plugin before.

    Thanks for using WP Carousel, I’ll try to implement this feature ASAP.

    It’s weird: When I look at the SQL database, the Page Excerpt plugin puts a Page’s excerpt in the same data column as with all the Posts’ excerpts. So Carousel ought to have no trouble pulling the data from the same place, right?

    Fixed! I made a small change around line 4057 on wp-carousel.php:
    $return['desc'] = $post_temp->post_content;
    to read instead:
    $return['desc'] = $post_temp->post_excerpt;
    Thanks again for a great plugin!

    CowboyFrank – Thanks ever so much for finding this out.

    I had to make two changes, and not in exactly the same place, but still in the wp-carousel.php file. I just did a search and replace, so your method is good!

    I also agree, this is a nice little plugin. Thanks Sumolari.



    Hi CowboyFrank,

    I am seeking some code so that I can create excerpts using the Rotating Posts plugin by Mark Inderhees. I would like to insert code so that a post title, image and 200 words from each post rotate. And, I see from other forum discussions that you had submitted some code for this purpose – one year ago?

    Tom Wolfer (a.k.a Tumbleweed)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WP Carousel] Page Excerpts?’ is closed to new replies.