Some PHP help please

  • Author
    Posts
  • #438468

    groovdafied
    Member

    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.

    #438725

    supportbot
    Member

    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.

    #438727

    groovdafied
    Member

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

    ?>

    #438728

    groovdafied
    Member

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

    #438748

    timethief
    Member

    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/

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