• Hello,

    I’ve been working on a new theme, which I would like to have a “featured” post slider, which uses the particular post(s) featured image if one is set. For this I want to use a custom size so I am currently using
    add_image_size( 'sliderthumb', 640, 330, true );
    which works fine for new posts, but older posts from before the theme was installed won’t have this thumb size available, the only way to get all posts to have this image size is to install and run a plugin like “Regenerate Thumbnails”.

    My question, is there a better way to do this? Without forcing users of my theme to install another plugin to resize the images?

    Thanks for any help or advice.

    Edit: Would it be better to have a separate plugin users could install if they would like to use the featured slider functionality rather than putting everything into the theme?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Timthumb.php?

    I’ve seen themes that regenerate the thumbnails for you on activation (after asking)…. could possibly look into that. I’m sorry I don’t have a specific to recommend

    It’s hard to determine when to use plugins, and when to add theme features. I think themes are starting to cram too much stuff in, and feature lock you into them.

    If you do decide to use plugins with your theme, check out:
    https://github.com/thomasgriffin/TGM-Plugin-Activation

    for ways to integrate plugin with themes

    Personally, I stay far away from timthumb. Why bother loading down a theme with external scripts when WP can handle what you are after already eh?

    Thread Starter enile8

    (@enile8)

    Thanks for the suggestions.

    @voodoo I agree I would like to use something built in already or possibly activate a plugin. I found the plugin activation code on github after posting this, I like the look of that and I think that is the path I am going to take for this theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured Slider in a new theme’ is closed to new replies.