• Greetings

    I have the following part of code

    This code is put the NORMAL categories in an array to select then in an option page in my theme.

    // Pull all the categories into an array
    $options_categories = array();
    $options_categories_obj = get_categories();
    foreach ($options_categories_obj as $category) {
    $options_categories[$category->cat_ID] = $category->cat_name;
    }
    // Pull all the pages into an array
    $options_pages = array();
    $options_pages_obj = get_pages(‘sort_column=post_parent,menu_order’);
    $options_pages[”] = ‘Select a page:’;
    foreach ($options_pages_obj as $page) {
    $options_pages[$page->ID] = $page->post_title;
    }

    My problem is that I cant to make it filtering AND the all in one event categories with the normal categories, in the same list, OR, to make it select ONLY the all in one event categories in the array.

    Can any any body help me to do this? I have not the knowlenge to do this. I dont know is what i am asking for is hard or not, but i just cant do it myself.

    thank you for your time and for your understanding.

    http://wordpress.org/extend/plugins/all-in-one-event-calendar/

  • The topic ‘how to select ai1ec categories in an array’ is closed to new replies.