• Mike-bd

    (@mikekharisma)


    I’m successfully using hierarchical menus in a form with the function wp_dropdown_categories on my website. It successfully displays all the categories for selection showing parent categories and children indented.
    However, I’m currently working through an iPad theme for the website and although the function basically works, the iPad will not display/obey the hierarchical instruction in the array and indent the children.
    Has anyone found a work round?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Mike-bd

    (@mikekharisma)

    I’ve discovered that the iPad is not reading the &nbsp html and inserting the space. How would I use the str_replace command to replace all the &nbsp text with something that works?

    Thread Starter Mike-bd

    (@mikekharisma)

    All the relevant ‘space’ codes don’t seem to work on the iPad and IOS. The only answer was to replace the space with a dash as below
    “$select_cats1 = wp_dropdown_categories( array( ‘child_of’ => ’62’, ‘hierarchical’ => true, ‘depth’ => 2, ‘show_option_none’ => ‘ ‘, ‘hide_empty’ => 0, ‘orderby’ => ‘id’ ) );
    $select_cats1 = str_replace( “name=’cat’ id=”, “name=’cat[]’ id=”,
    $changed = str_replace(“& nbsp “,”-” , $select_cats1 );
    echo $changed;”

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_dropdown_categories hierarchical ipad’ is closed to new replies.