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

  1. peter.tan
    Posted 3 years 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


  2. DWUser
    Plugin Author

    Posted 3 years 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.

    Drew O'Neill

  3. peter.tan
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • EasyRotator for WordPress - Slider Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic