Some PHP help please

  • Author
  • #438468


    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



    The blog you specified at does not appear to be hosted at

    This support forum is for blogs hosted at If your question is about a self-hosted WordPress blog then you’ll find help at the forums.

    If you don’t understand the difference between and, 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.

    PHP script:

    * 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”];




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



    At we cannot access the php so you are definitely in the wrong place. the forum for self hosting wordpress bloggers is here

The topic ‘Some PHP help please’ is closed to new replies.