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
LVL 8
rgranlundAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gr8gonzoConsultantCommented:
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.
0
rgranlundAuthor Commented:
I forgot the picture.
taxonomy.PNG
0
gr8gonzoConsultantCommented:
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.
0
rgranlundAuthor Commented:
@gr8gonzo.. there is no hook or filter?
0
gr8gonzoConsultantCommented:
Not for changing that location, no.

There's a filter for replacing the editor as a whole (instead of using edit-form-advanced.php), which could include your own custom copy with its adjusted locations, but that's pretty drastic.

If you want to really drive into it, that edit-form-advanced.php file has a few actions that surround the various areas where the meta boxes are added - you could create a plugin that starts an output buffer (ob_start) on the "edit_form_after_editor" action (which fires before the sidebar / metaboxes are constructed), and then have the plugin also fire on the "dbx_post_sidebar" action to end the output buffer.

Your buffer should have ALL the meta boxes inside (both in the sidebar and below the editor), including your category box (<div id="categorydiv" class="postbox">) and your tags box (<div id="tagsdiv-post_tag" class="postbox ">).

You could then extract/remove those boxes and then inject them inside the "normal-sortables" div (<div id="normal-sortables" class="meta-box-sortables ui-sortable">), and then output the result.

You would simply need to be comfortable doing the proper HTML manipulation.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.