WordPress.org

Ready to get started?Download WordPress

Forums

EasyRotator for WordPress - Slider Plugin
[resolved] Description field using content instead of excerpt (3 posts)

  1. peter.tan
    Member
    Posted 8 months ago #

    Love the plugin so far trying it out.
    But I ran into a problem where the images used are from featured images of posts. The description field has nothing displayed. Later I found the description field requires excerpt field of the posts, where my posts has no excerpt. How can I use the description field to display the content instead of excerpt? Thanks

    http://wordpress.org/plugins/easyrotator-for-wordpress/

  2. DWUser.com
    Member
    Plugin Author

    Posted 8 months ago #

    Hi Peter,

    Thanks for using EasyRotator for WordPress. If you want to use a post's content instead of its excerpt for a slide description text, you'll need to update the following line (around 1796) in plugins/easyrotator-for-wordpress/engine/main.php:

    $description = $post->post_excerpt;

    To be:

    $description = $post->post_content;

    You may want to also update the code to trim the text.

    Please let me know if you have any other questions.

    Sincerely,
    Drew O'Neill

  3. peter.tan
    Member
    Posted 8 months ago #

    Thanks for the quick reply. I do have other qs, i'll open a new thread for it.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags