Why jiDESK
How It Works
Projects
Companies
Blog
Support
Sign up
Login
You cannot apply on this project as you are not part of any company. Please add new or join existing company.
Write a function that exports data to a csv file (simple task)
Open
Write a Wordpress function that exports some data from the database to a CSV file.
This is the SQL-Query:
$sql = "SELECT `ID`, `post_title`,`post_status`,`post_name`,`guid` FROM `wp_posts` WHERE `post_type` LIKE \'page\'";
The data should be written into a CSV-textfile called wp-posts.csv in the Wordpress root folder (where the wp-config.php file is located)
See attached example what the file should look like.
I just need the function. No plugin required.
Budget: $20
Posted On: March 23, 2018 13:30 UTC
Category: Web, Mobile & Software Dev > Web Development
Skills: PHP, WordPress
Country: Germany
ID
133835
Title
Write a function that exports data to a csv file (simple task)
Type
Hourly
Budget
$16-$50
Is Private
No
Created On
5 years ago
© 2023
jiDESK.com
All Rights Reserved.