Link to home
Start Free TrialLog in
Avatar of Robert Granlund
Robert GranlundFlag for United States of America

asked on

Wordpress Page or Post Admin move where Categories and Taxonomy appear

Wordpress Page or Post Admin.
Is there a function or template inside of WP that I can hook into and move The categories box? I created my own Taxonomy and I would like to edit where it appears on the page. The picture is attached that shows my custom taxonomy and where I may want to move it.  Any help in finding the function that places taxonomy and categories on the page will be greatly appriciated
Avatar of gr8gonzo
gr8gonzo
Flag of United States of America image

There is no attached picture, but typically when you're talking about a particular type of object's placement on a page, that is usually handled within your theme's files, either in the header, footer, template, or functions files.

If you're having trouble locating the specific file, you can always use the developer tools within your browser to inspect one of the categories, and then hover over the parent elements one-by-one (working your way outwards) until you find the right container. Then you should know what to look for in those theme files.
Avatar of Robert Granlund

ASKER

I forgot the picture.
taxonomy.PNG
Oh so you're talking about edit the ADMIN area.

So a forewarning - to do this, you have to edit the default source code, so this change could potentially be overwritten during your next WP upgrade. Basically, edit the wp-admin/edit-form-advanced.php file, search for this line:

add_meta_box( $tax_meta_box_id, $label, $taxonomy->meta_box_cb, null, 'side', 'core', array( 'taxonomy' => $tax_name ) );

Open in new window


...and change "side" to "normal":

add_meta_box( $tax_meta_box_id, $label, $taxonomy->meta_box_cb, null, 'normal', 'core', array( 'taxonomy' => $tax_name ) );

Open in new window


That will move the categories and tags boxes to be below the content editor.
@gr8gonzo.. there is no hook or filter?
ASKER CERTIFIED SOLUTION
Avatar of gr8gonzo
gr8gonzo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial