Tagged: wordpress RSS
-
Nathan Haskins
-
Nathan Haskins
generating wordpress-import friendly XML using php from a mysql list of products. 467 new posts create, and categorized. I’m pretty sure this is the way to go about rapidly filling in the content on a fresh wordpress site. Breaking down the sitemap into a blank .txt file, feeding the file to a parser, and having the parsed data hit the xml generator. kaboom! instant site skeleton from a text file.
This picture is a small clip showing a snippit of the php file used to generate the xml file containing an entry for each product in a database.

-
Nathan Haskins
typepad -> wordpress
here’s the directions, its really easy: http://teblog.typepad.com/david_tebbutt/2005/12/moving_from_typ.html
-
Nathan Haskins
WordPress MU and subdomains
-one man’s struggle: http://vernonkesner.com/230/wordpress-mu-subdomains-on-plesk.php
-for MAMP testing, you need to get rid of the :8888 default port: http://www.sawmac.com/mamp/
-need to use your local IP address to access MU 127.0.0.1/: http://www.johnkolbert.com/wordpress/how-to-install-wordpress-mu-on-mamp/ *I still can’t get this install to work… switching gears for now.
-
Nathan Haskins
WordPress defaul 32MB memory limit.. and how to increase it
1) go into wp-config.php
2) add this define(‘WP_MEMORY_LIMIT’, ’128M’);save, done. thanks justin ardoin at simplehelix.com for that one.
-
Nathan Haskins
Allow more filetypes in wordpress upload
Pretty much, add a hook into the theme’s function.php, and specify more… ex:
add_filter('upload_mimes', 'custom_upload_mimes'); function custom_upload_mimes ( $existing_mimes=array() ) { // add your ext => mime to the array $existing_mimes['vcf'] = 'text/x-vcard'; $existing_mimes['vcard'] = 'text/x-vcard'; // add as many as you like // and return the new full result return $existing_mimes; }vcard.. heh
a more in dept summery is here: http://chrismeller.com/2007/07/modifying-allowed-upload-types-in-wordpress
-
Nathan Haskins
WordPress 3.0 is available! Please update now show up in the dash board
to me, this is the ‘official’ release of wordpress 3.0… im prompted to automatically update to v3.0

Nathan Haskins
generate a WP XML import file from an old site
*this doesn’t work with wordpress 3.0… im reprogramming now….
Something i find helpful when converting content from a non wordpress site, to a wordpress site is to convert the old content into an XML file, and import it into the new wordpress installation.
The tricky part is figuring out which parts of the XML structure need to be generated, and which can be skipped. I’ll say this for it, the actual way the lines break are important for importing meta field data.
Here is a copy of the file, I was using this inside of wordpress as a page template. When the page is opened, it write a page.xml file into the root directory. I had this reading from a database of sports products, and making a post for each product with meta data.
After importing a bunch of meta data heavy content, this plugin is a much to optimize the default search
Nathan Haskins
save_post hook
using $_POST to get id – http://wordpress.org/support/topic/353979
update_post reference – http://codex.wordpress.org/Function_Reference/update_post_meta
ref on post_meta – http://codex.wordpress.org/Function_Reference/get_post_meta
substr php ref – http://php.net/manual/en/function.substr.php
*In the custom meta box form, if the input field values are missing a name, they won’t get pushed to the $_POST array when the page/post is saved.
Nathan Haskins
Customize wordpress write panel meta boxes
http://wefunction.com/2009/10/revisited-creating-custom-write-panels-in-wordpress/
