Home › Forums › Add-ons › Repeater Field › Image resize after upload › Reply To: Image resize after upload
Sure.
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 =’http://www.domain.co.uk/wp-content/themes/theme_folder/’;
<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
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.