Support » Plugin: EasyRotator for WordPress - Slider Plugin » Doesn't work for custom post types

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

    (@dwusercom)

    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

    brilliantayyy!

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Doesn't work for custom post types’ is closed to new replies.