
SQL expert require for WP custom post in PHP site
- or -
Post a project like this$$$
- Posted:
- Proposals: 9
- Remote
- #1667877
- Expired
20+ Years of experience | Your Trusted Tech Partner for Critical Websites & Web Apps

159202416500461666213554344133619817800478319299046061764921
Description
Experience Level: Expert
Estimated project duration: 1 day or less
General information for the website: Leisure
Description of requirements/features: I am looking for someone to edit some existing (working) sql code from 2 tables in the WP database. The sql has been started but it needs editing. I will provide a sql file with the 2 tables in. I am using the 'Advanced custom fields' plugin.
Edits required:
1. Unique key creation
2. Addition of custom field values from post_meta table (credit, internal_link, internal_link_text, external_link, external_link_text
3. Filter by category
Will also take advice if existing sql is incorrect! Thanks
Extra notes: SELECT postid, title, post_name, date, content, credit, CONCAT(LEFT(image, LENGTH(image) - LOCATE('.', REVERSE(image))),'.',SUBSTRING_INDEX(image, '.', -1)) AS image FROM ( SELECT p.post_title AS title, p.post_status AS 'status', p.post_date AS date, p.post_content AS content, p.post_name AS post_name, m.meta_value AS credit, p.id AS postid, (SELECT `guid` FROM wp_posts WHERE id = m.meta_value) AS image FROM wp_posts p, wp_postmeta m WHERE p.post_type = 'post' AND p.post_status = 'publish' AND p.id = m.post_id AND m.meta_key = '_thumbnail_id' ORDER BY date DESC LIMIT 5) TT
Description of requirements/features: I am looking for someone to edit some existing (working) sql code from 2 tables in the WP database. The sql has been started but it needs editing. I will provide a sql file with the 2 tables in. I am using the 'Advanced custom fields' plugin.
Edits required:
1. Unique key creation
2. Addition of custom field values from post_meta table (credit, internal_link, internal_link_text, external_link, external_link_text
3. Filter by category
Will also take advice if existing sql is incorrect! Thanks
Extra notes: SELECT postid, title, post_name, date, content, credit, CONCAT(LEFT(image, LENGTH(image) - LOCATE('.', REVERSE(image))),'.',SUBSTRING_INDEX(image, '.', -1)) AS image FROM ( SELECT p.post_title AS title, p.post_status AS 'status', p.post_date AS date, p.post_content AS content, p.post_name AS post_name, m.meta_value AS credit, p.id AS postid, (SELECT `guid` FROM wp_posts WHERE id = m.meta_value) AS image FROM wp_posts p, wp_postmeta m WHERE p.post_type = 'post' AND p.post_status = 'publish' AND p.id = m.post_id AND m.meta_key = '_thumbnail_id' ORDER BY date DESC LIMIT 5) TT
Gail D.
100% (40)Projects Completed
59
Freelancers worked with
35
Projects awarded
15%
Last project
7 Mar 2022
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-

if you are still facing problem here,Please let me know I will sort it.
-

Hi Gali,
Your given SQL codes checked out very well , Just i need to can you show your existing website URL to have a better idea on this? And when you available free to discuss on this?
Regards,
Sushil -

Hi Gail,
Can you please provide the more details ?Gail D.06 Aug 2017What details do you require? I have written edits required and added existing sql code.
478593476875476378
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies