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
ID133835 TitleWrite a function that exports data to a csv file (simple task)
TypeHourly Budget$16-$50
Is PrivateNo Created On3 years ago