News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

CatsWhoCode.com:
WordPress How to insert data programmatically
August 03, 2010 @ 10:14:02

On the CatsWhoCode.com blog today they share an alternative method for getting content into your WordPress blog - a programmatic approach pushing it directly in through bits of code.

Recently, a client of mine asked me to write an article importer for his WordPress powered site, which was a very interesting project for me. In this article, I'll show you how you can easily add data (posts, comments, categories, etc) to your WordPress blog, without any manual effort.

They describe and show examples for a few different types of inserts:

  • Inserting posts
  • Inserting comments
  • Adding categories to a post
  • Adding tags to a post
  • Automatically create a custom field when a post is published

Code snippets are provided for each.

0 comments voice your opinion now!
wordpress insert data programmatic


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: CSVtoXLS: A Utility to Convert CSV data into XLS Spreadsheets

Sameer Borate: Storing images into a database - resolving a contentious matter

Leon Kilat\'s Blog: How to edit Wordpress themes using Dreamweaver

PacktPub.com: Develop PHP Web Applications with NetBeans, VirtualBox and Turnkey LAMP Appliance

Zend Developer Zone: Zend_Gdata for Picasa, YouTube, Google Documents List


Community Events











Don't see your event here?
Let us know!


symfony2 podcast code package series install unittest hack opinion framework hhvm composer security introduction component facebook release language dependency application

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework