Find Jobs
Hire Freelancers

Wordpress Auto Thumbnail from Post

$30-250 USD

Cancelled
Posted over 11 years ago

$30-250 USD

Paid on delivery
Hello, I need to customized the functions in my theme to make it auto generate thumbnails from posts (the first image) that is not local, it`s referenced in a url. I have the code, I just need to make it work with this theme. My website is: [login to view URL] As you can see, I have tried using the Auto Post Thumbnail plugin but it generated the thumbnail from the second picture (that is referenced localy) not the first one from the url. //////////////////////////////////////////////////////////////////////////////// // Get Featured Post Image //////////////////////////////////////////////////////////////////////////////// function get_featured_slider_image() { global $post, $posts; $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('//i', $post->post_content, $matches); $first_img = $matches [1] [0]; if(empty($first_img)){ //Defines a default image $img_dir = get_bloginfo('template_directory'); $first_img = $img_dir . '/images/[login to view URL]'; } return $first_img; } //////////////////////////////////////////////////////////////////////////////// // Get Post Image //////////////////////////////////////////////////////////////////////////////// function get_post_image() { global $post, $posts; $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('//i', $post->post_content, $matches); $first_img = $matches [1] [0]; if(empty($first_img)){ //Defines a default image $img_dir = get_bloginfo('template_directory'); $first_img = $img_dir . '/images/[login to view URL]'; } return $first_img; } //////////////////////////////////////////////////////////////////////////////// // Get Featured Category Image //////////////////////////////////////////////////////////////////////////////// function get_featcat_image() { global $post, $posts; $first_img = ''; ob_start(); ob_end_clean(); $output = preg_match_all('//i', $post->post_content, $matches); $first_img = $matches [1] [0]; if(empty($first_img)){ //Defines a default image $img_dir = get_bloginfo('template_directory'); $first_img = $img_dir . '/images/[login to view URL]'; } return $first_img; }
Project ID: 4001422

About the project

6 proposals
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
6 freelancers are bidding on average $66 USD for this job
User Avatar
Please check PMB
$100 USD in 1 day
4.9 (565 reviews)
8.3
8.3
User Avatar
I can modify your wordpress website to create post thumbnail from first image (even on external images). I can complete this work in 2 days.
$44 USD in 2 days
5.0 (1242 reviews)
8.1
8.1
User Avatar
wordpress have its own function for this. a 5 line code. need 20 mints to finish the job. if ready then allow me to do it.
$30 USD in 0 day
4.9 (62 reviews)
6.7
6.7
User Avatar
Hello, After having look at your requirement, I would like to offer you our quality services which will be your ultimate goal and requirement to have. With the market presence of 5+ years, we have worked on 1500+ successful projects ranging from $50 to $20,000 USD. We have been providing quality service with the customer satisfaction and within the time line to 20+ Web/print partners. Awaiting for your favorable response. Regards, Krunal
$70 USD in 1 day
5.0 (13 reviews)
4.9
4.9

About the client

Flag of ROMANIA
Bistrita, Romania
4.9
14
Payment method verified
Member since May 25, 2006

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.