Wordpress Custom Fields

Need to allow easy entry of a variable in a post and have single.php, page.php, archive.php or otherwise script pick it up?

Use Custom Fields! (wp user admin tool)
Simply add a new custom field Key: named just about anything desired, and the value to pass.
Enter as many as desired, then grab them as an array via the Key name chosen in the script...

$post = $post->ID; // Gets the post's ID
$key = 'ProdId';
$single = false;

$product_list_array = get_post_meta($post, $key, $single);

Bam, Wordpress saves the Key:Value in the database referenced by the post, and the Wordpress function get_post_meta() grabs it back!

Posted on 16 Nov 2009, 11:24 - Category: Wordpress
Comments - Edit - Delete


Make Connections Persistent in Wordpress mysql_pconnect

folder: wp-includes
file: wp-db.php

change '@mysql_connect(...'

to:

@mysql_pconnect(...

It's that simple

keywords: Php, PHP, php, Wordpress, wordpress, connect, connections, pooling, persistent, mysql_connect, mysql_pconnect

Posted on 21 Oct 2009, 12:29 - Category: Wordpress
Comments - Edit - Delete


Wordpress Podcast Utility of choice - podPress

Podcast Feed URL :
http://feeds2.feedburner.com/name_chosen_in_feedburner

http://www.podpress.org/

Posted on 28 Sep 2009, 13:15 - Category: Wordpress
Comments - Edit - Delete


Wordpress use Php in Posts

Exec-php

http://bluesome.net/post/2005/08/18/50/

Posted on 28 Sep 2009, 13:11 - Category: Wordpress
Comments - Edit - Delete


Pages: [1]
Loading