Find Jobs
Hire Freelancers

Help writing Wordpress/ACF related PHP/SQL statement

$30-250 USD

Completed
Posted over 4 years ago

$30-250 USD

Paid on delivery
I have a website that is integrated with Wordpress and the ACF plugin. I need some help writing an SQL statement to query the data I need. This is the statement so far "SELECT ID, ( 3959 * acos(cos( radians( ".$_GET[lat]." ) ) * cos( radians( pm1.meta_value)) * cos( radians( pm2.meta_value ) - radians( ".$_GET[lng]." ) ) + sin( radians( ".$_GET[lat]." )) * sin( radians( pm1.meta_value) ) ) ) AS distance FROM wp_posts LEFT JOIN wp_postmeta AS pm1 ON pm1.post_id = [login to view URL] AND pm1.meta_key = 'latitude' LEFT JOIN wp_postmeta AS pm2 ON pm2.post_id = [login to view URL] AND pm2.meta_key = 'longitude' HAVING distance <= ".$_GET[radius]." ORDER BY distance ASC;" This statement queries Wordpress posts and returns them in order of their distance using LAT/LONG co-ordinates. I need to add some extra filters to this query. I need to also filter by: - (ACF Field) event_start_date => today - WP post status = published That's it! Thank you.
Project ID: 21360682

About the project

13 proposals
Remote project
Active 5 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
Awarded to:
User Avatar
I can provide help implementing the filters you need on your SQL query and also help implement PHP code to add filters accordingly based on user input if required. I have been a website developer for more than 6 years now. I previously worked for private companies developing administrative web applications. Now I work as a freelance programmer. I work with websites built on wordpress, codeigniter, laravel and more. Feel free to send me a message so we can discuss further details. Thanks.
$30 USD in 1 day
5.0 (90 reviews)
6.2
6.2
13 freelancers are bidding on average $149 USD for this job
User Avatar
Ready to work with you, could you please send me some more details about your project so we will estimate it accordingly....
$225 USD in 5 days
4.8 (505 reviews)
8.2
8.2
User Avatar
I can help you out with adding extra filters etc to advanced custom field plugin and can start now . Let's talk over in chat and discuss there
$200 USD in 2 days
5.0 (303 reviews)
7.1
7.1
User Avatar
Hi. sir. Glad to meet you I checked your project description carefully. I mastered mobile and web development and have much experience, so I am very confident to do this project. :) I'm not an agent or broker but a senior developer who has 140+ reviews. You might review my past experience here. https://www.freelancer.com/u/leemilun?w=f I can provide you the best result than anyone else. Waiting for your positive response... Thanks.
$140 USD in 7 days
4.7 (85 reviews)
6.9
6.9
User Avatar
Hello Hope you’re doing well.!!!!! I have gone through the job requirements carefully. I will deliver you brilliant results on the requested Job. We are experts in the following technologies: - Web---- Wordpress, php, Codeigniter, Laravel,angular js, Magento,node js, WIX, Shopify, Ecommerce,Prestashop,Squarespace,HTML, Javascript, Responsive, Landing Page, UI/UX, Bootstrap,PSD to HTML. Digital Marketing---- SEO,PPC,Email Marketing,
$200 USD in 10 days
4.8 (134 reviews)
6.6
6.6
User Avatar
Hello, ⭐⭐⭐How are you?⭐⭐⭐ I read through the job details extremely carefully and I am absolutely sure that I can do the project very well. I would love to work on your project and I'm confident that I can give the result and exceed your expectations. I have worked on similar projects to what you are looking for. I have a rich experience in WordPress development and Mysql. So I'm confident that I can complete your project on time and within your budget. I can achieve the results that you are asking for. Thank you Hope that helps you as well. Kindly Regards Li W
$140 USD in 7 days
5.0 (6 reviews)
3.8
3.8
User Avatar
Dear Client. ****************** High-quality & Fast-delivery is promised! As a highly skilled full stack developer and PHP expert. I can help you perfectly. I am very confident with my skills and I'd like to help your business by doing my best. My clients have never been frustrated with my work and I hope to make you one of them. I am able to work full time on your timezone and start working right away. Please confirm that I am one of the best fits for you and drop me a message for further discussion. ****************** Thanks and Best Regards…
$140 USD in 7 days
5.0 (3 reviews)
1.2
1.2
User Avatar
Hello. I read your details carefully. I am a wordpress master and I have rich experiences of developing wordpress. If you hire me, i will provide the best service. I can do it very fast. And also i will continue to work for you till you satisfy. Please contact me. Thank you.
$140 USD in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
York, United Kingdom
4.9
48
Payment method verified
Member since Nov 24, 2012

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.