Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Oops, take that back – seems to be working now!

    Can confirm:
    return preg_replace('#<div id="categorydiv".*?<h2>Advanced Options</h2>#sim', '<h2>Advanced Options</h2>', $page);

    works for wordpress 2.6.1

    I would also like to make the categories div not show for a user that is binded to a category and followed jaldrich’s instructions.

    I viewed the source HTML on the wp-admin/post-new.php page (where the categories div should be hidden) for wordpress 2.6.1:

    <div id=”categorydiv” class=”postbox “>
    <h3>Categories</h3>
    …[more HTML code here]…
    <h2>Advanced Options</h2>

    and not sure if the code supplied by jaldrich will work, in particular the preg_replace function:

    return preg_replace(‘#<div id=”categorydiv”.*?<h2>Advanced Options</h2>
    #sim’, ‘<h2>Advanced Options</h2>

    Any advice appreciated as I’m not too good with regular expressions!

Viewing 2 replies - 1 through 2 (of 2 total)