Home Forums Add-ons Repeater Field Image resize after upload


Image resize after upload

    • mrbig00

    • October 2, 2013 at 5:10 pm


    I’m uilding a site with acf, everything works good, documentation is very good but I’m stuck at one problem: I need to resize (not with css) the uploaded images via repeater field.

    Do you guys have some idea how can I do this?


    • jarvis

    • October 3, 2013 at 11:24 pm


    Can you not use TimThumb? This is what I do and it works really well!

    • mrbig00

    • October 4, 2013 at 1:21 am

    sure, i can use thimthumb, but could you give me an example?

    thanks πŸ™‚

    • jarvis

    • October 4, 2013 at 2:43 am


    I’ve installed the timthumb code in its own directory within my theme.

    I then have a field within my repeater called image

    Finally, I have a line of PHP ($theme_path) which I call from my function file. This is simple the path to timthumbs files like so:
    $theme_path =’’;

    <img src="<?php echo $theme_path; ?>timthumb/timthumb.php?src=<?php the_sub_field('image'); ?>&w=618&h=298&q=100">

    That should get you what you need. Hope that helps

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.