PHP Developer

Showing posts with label CSV. Show all posts
Showing posts with label CSV. Show all posts

Wednesday, 1 July 2015

Export post in CSV Format

Export post in CSV Format :

This plugin helps you to Export custom post with CSV file. CSV file include full data of custom post like featured image link, custom meta box value, title, content, etc.


<?php
/**
 * Plugin Name: Export Cause with CSV File
 * Plugin URI: https://plus.google.com/u/0/115833273431242118637
 * Description: This plugin helps you to Export Cause (custom post) with CSV file. CSV file include full data of Cause(custom post) like featured image link, custom meta box value, title, content, etc.
 * Version: 1.0.0
 * Author: Sunil Sharma
 * Author URI: http://astro-global.blogspot.in/
 */

$pathss = $_SERVER['DOCUMENT_ROOT'];
if(!defined('DS')){
    define('DS',DIRECTORY_SEPARATOR);
}
include_once $_SERVER['DOCUMENT_ROOT'].'/wp-load.php';

Saturday, 4 April 2015

Create a plugin in wordpress to add Multiple Number of posts, Meta Box And Featured Image from CSV

Create a plugin in wordpress to add Multiple Number of posts, Meta Box And Featured Image from CSV

1.  Create a directory with name “csv-upload”.
2.  Create files in directory  “csv-upload”
          a. csv-upload -> csv-upload.php
          b. csv-upload -> csv_queryupload.php
          c. csv-upload -> ajax-loader.gif
          d. csv-upload -> csv      //This the directory where csv file upload