
Completed
Posted
Paid on delivery
I need a custom Wordpress function that will return an array of oldest values from the database. For this example; I have created a bunch of custom posts ('machine') in Wordpress. Each custom post has been assigned two custom metadata keys; 'last_updated_timestamp' and 'serial_number'. Timestamps are in epoch format (i.e. '1557240847'). This is the code that I have so far, and it returns an array of serial numbers as expected. Although, I need the SQL query updated, as to instead return the OLDEST serial numbers found in the database, based on their metadata keys 'last_updated_timestamp'. function get_oldest_serial_numbers($limit = 10) { global $wpdb; $result = $wpdb->get_col( $wpdb->prepare(" SELECT pm.meta_value FROM {$wpdb->postmeta} pm LEFT JOIN {$wpdb->posts} p ON [login to view URL] = pm.post_id WHERE pm.meta_key = 'serial_number' AND p.post_status = 'publish' AND p.post_type = 'machine' LIMIT %d ",$limit)); return $result; }
Project ID: 19468540
17 proposals
Remote project
Active 7 yrs ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

Hello, My name is Sergey. I am Freelancer from Saint Petersburg, Russia. I can help you as an experienced WordPress programmer to update your code/SQL to return the OLDEST serial numbers found in the database, based on their metadata keys 'last_updated_timestamp'. Can be done today. 2000+ successfully completed projects, including 300+ WordPress projects, speak for me. Links and reviews from my past clients available in my profile. I am an individual, I am not a company in any meaning. I can communicate via Freelancer.com. -- Sergey aka Takereal
$30 USD in 1 day
8.2
8.2
17 freelancers are bidding on average $26 USD for this job

Hello there Myself having has 10 + years experience of web site development. Expert in Custom programming in php / Mysql / Jquery /Laravel/ Code Igniter/ Prestashop/ Drupal/ Wordpress/ Joomla / OSC / Magento /OpenCart / Android / Mobile development / Responsive. Ready to start the work immediately. I am confident to handle your projects with dedication and good quality. Thanks and regards, Harpreet Singh
$35 USD in 1 day
7.6
7.6

Hello there! how are you doing? if the project is fairly paid I can build you a small part of it as form of a demo, afterwards you'll decide if you should hire me or not so don't hesitate to contact me even though you might not be planing to hire me, I don't mind helping Regards Nadhir.B
$30 USD in 1 day
6.4
6.4

Hello. I 'm expert in "PHP, SQL, WordPress, MySQL" and I have working for 7+ years in this field. I 'm very interest to your project. I have checked your project description carefully and i can do it. I 'll do my best till you satisfy if you want me. Contact me please. Thank you. Yang L.
$30 USD in 1 day
6.3
6.3

Hello sir, I am good at : 1. WordPress, Shopify, Magento, Opencart, Joomla web development 2. PSD to HTML 3. Responsive web development 4. Graphics Designing 5. Photoshop 6. PHP 7. html + CSS Styling 8. js & jQuery. you can check my work at "https://www.freelancer.com/u/webcast.html#/reviews". I would like to work on your project. I Really Need this work. l will not disappoint you. Thank you.
$30 USD in 1 day
6.1
6.1

Hi! I am an expert of PHP programming can work to update your SQL query in your wordpress. please kindly contact me for more further discussion, thank you.
$30 USD in 1 day
4.9
4.9

Hello I can update the query that you have to return the oldest serial numbers first based on their metadata keys 'last_updated_timestamp'. You can always contact me if you have any questions. Thanks.
$30 USD in 1 day
4.9
4.9

Hi there, Hope you are doing great!. I am expert and can surely assist you with my service in updating the query right now via ANY DESK. Looking forward for your positive response. Best Regards, Ijaz Hussain
$30 USD in 1 day
4.3
4.3

Hi, very interesting and not hard job for me. I have fully understood your requirement. This is an agile programmer with more than 7 years experience. I graduated of BScH Computer Science who possesses an interesting and understanding of web technologies, from web development to data analytics. I can help you.
$25 USD in 1 day
3.9
3.9

Hello. I can help you. I have enough experience and high skill in Wordpress, PHP , SQL. You will be satisfied with my work. Thank you.
$20 USD in 7 days
3.7
3.7

As I understood, you need the records in descending order of the last_updated_timestamp I think it may be a quick tweak on that query by adding order by in it. Let's discuss more if both of us are in same track
$10 USD in 1 day
3.9
3.9

Good understanding in languages including PHP, MySql, SQL SERVER 2012 , Sql WorkBench, Laravel, CodeIgniter, WordPress, WordPress Themes, WordPress Plugins, HTML5, CSS3, Javascript, Jquery, Json, E-Commerce, Woo- Commerce, Bootstrap. I have complete knowledge to solve complex performance problems and architectural challenges in PHP, Laravel, CodeIgniter, WordPress, HTML5, CSS3, E-Commerce, Woo- Commerce. I am experienced to integrating common / third-party APIs and payment method.
$20 USD in 1 day
2.8
2.8

Malmo, Sweden
Payment method verified
Member since Mar 3, 2012
$10-30 USD
$30-250 USD
$20-50 USD
$10-30 USD
$10-30 USD
$250-750 USD
₹750-1250 INR / hour
$10-30 USD
₹100-400 INR / hour
$250-750 AUD
€250-750 EUR
$8-15 USD / hour
₹37500-75000 INR
₹600-1505 INR / hour
₹12500-37500 INR
₹600-1500 INR
$2-8 USD / hour
$10-30 USD
$30-250 USD
₹600-1500 INR
₹75000-150000 INR
$100-150 USD
$15-25 USD / hour
$150-200 USD
$30-250 NZD