WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Description field using content instead of excerpt

[Resolved] Description field using content instead of excerpt

  • peter.tan
    Member

    @petertan-1

    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DWUser
    Member

    @dwusercom

    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

    peter.tan
    Member

    @petertan-1

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Description field using content instead of excerpt’ is closed to new replies.