WordPress.org

Forums

EasyRotator for WordPress - Slider Plugin
[resolved] Doesn't work for custom post types (3 posts)

  1. harveyharveyharvey
    Member
    Posted 1 year ago #

    This doesn't show posts from Custom Post Types. Anyone know how to make it work?

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

  2. DWUser
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Harvey,

    Thanks for using EasyRotator for WordPress. If you're comfortable making edits to the plugin code, you should be able to add this feature by modifying the following code around line 1682 in wp-content/plugins/easyrotator/engine/main.php (within the getFeaturedPhotoInfo method):

    'post_type' => 'post',

    Becomes:

    'post_type' => array('post', 'event'),

    Essentially, you just replace the string with an array of any content types you want to include. They will be included as long as they have an associated featured image.

    Please let me know if you have any other questions.

    Sincerely,
    Drew O'Neill

  3. harveyharveyharvey
    Member
    Posted 1 year ago #

    brilliantayyy!

    thank you very much for getting back to me. you have saved me searching through miles of code! i will try this later =)

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