Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7909407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:23:50+00:00 2026-06-03T12:23:50+00:00

In the word press admin panel there is a category selection ‘helper panel’ which

  • 0

In the word press admin panel there is a category selection ‘helper panel’ which I am trying to recreate. However I can’t find the code for it, could someone point me in the right direction please?

Example

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T12:23:52+00:00Added an answer on June 3, 2026 at 12:23 pm

    The actual Category Box that is created by WordPress is not typically used by Plugins that utilize a Custom UI. However, you can mimic its behavior, and you were most certainly on the right track with get_categories(). If you want to grab ALL categories, not just the ones with a post count, you need to call it like so:

    <?php
    $args = array(
    'type'                     => 'post',
    'orderby'                  => 'name',
    'order'                    => 'ASC',
    'hide_empty'               => 0, //<--IMPORTANT!!
    'hierarchical'             => 1,
    'taxonomy'                 => 'category',
    'pad_counts'               => false );
    $categories = get_categories($args);
    ?>
    

    ‘hide_empty’ is what you were missing. Once you want to create your checkboxes, you would do something like this:

    <form action="action.php" method="POST">
    <?php
    foreach($categories as $cat)
    {
        echo '<input type="checkbox" name="categories[]" value="'.$cat->cat_ID.'" />';
        echo '<label>'$cat->name.'</label><br/>';
    }
    ?>
    <input type="text" name="user_input" value="" />
    </form>
    

    You can style the checkboxes however you like using a custom stylesheet, or you can apply the same tags and classes that the standard one uses, which will ensure that the existing WordPress Admin Stylesheet styles everything accordingly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to remove a few top-level menus on the WordPress admin panel.
I've some problem with iframe at the WordPress admin panel. Can you tell how
I need to perform some action in wordpress admin panel programmatically but can't manage
I want to create a new Menu in the admin panel of Wordpress for
If you go to wordpress admin and then settings->privacy , there are two options
I am trying to create a Wordpress MU admin plugin, that will insert some
I'm working on a word-press theme and whenever I add the code below to,
i have a question regarding the efficiency of word press database structure. My intended
I use global variable $table_prefix to differ whether I work on Word Press or
I already created a wordpress widget for adding some featured from admin panel.I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.