Need help? Check out our Support site, then


Some PHP help please

  1. Hey everyone,

    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.

  2. 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.

  3. BTW: Site is working okay, and so is my test.php file...just don't know how to use the information.

    PHP script:

    <?php
    /**
    * 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);
    //print $catlist;
    $args = array('orderby=>name');
    echo $args["orderby"];

    ?>

  4. oops, that last echo is a typo...please ignore that.

  5. At wordpress.com we cannot access the php so you are definitely in the wrong place. the forum for self hosting wordpress bloggers is here http://wordpress.org/support/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.