Some PHP help please
so I’ve created this test PHP page that manages to pull and post all my categories. I’m trying to import the categories into a flash document, and the wp_list_categories function is working fine, but I don’t know how to pull the data one by one. The data is stored in an array, and i want to be able to put that array into a loop that will create the list of variables, but I don’t know how to pull the info from the array.
cat1 = Category 1
cat2 = Category 2
cat3 = Category 3
Please let me know your thoughts.
The blog I need help with is preapptastic.com.
The blog you specified at preapptastic.com does not appear to be hosted at WordPress.com.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
BTW: Site is working okay, and so is my test.php file…just don’t know how to use the information.
* Handles Comment Post to WordPress and prevents duplicate comment posting.
* @package WordPress
/** Sets up the WordPress Environment. */
require( dirname(__FILE__) . ‘/wp-load.php’ );
$catlist = wp_list_categories($args);
$args = array(‘orderby=>name’);
oops, that last echo is a typo…please ignore that.
The topic ‘Some PHP help please’ is closed to new replies.