All Questions
Tagged with metabox categories
45 questions
0
votes
1
answer
28
views
Two related taxonomies. how to filter terms in second taxonomy depending on selected term in first taxonomy on Post edit page?
I have two custom taxonomies on the site - Countries and Cities.
The Country taxonomy contains over 200 terms, and the Cities taxonomy contains over 47,000 terms.
Naturally, editing content with ...
0
votes
1
answer
897
views
How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?
On the Edit Screen in the WP Admin there is a meta box for WP's built-in Category taxonomy. This meta box is built using post_categories_meta_box() (/wp-admin/includes/meta-boxes.php).
This meta box ...
0
votes
1
answer
45
views
Wordpress default post categories meta box widget
I have a plugin that automatically selects the categories in the wordpress post editor, sadly after installing the Rank Math - SEO plugin the default metabox of the post editor has changed and the ...
0
votes
0
answers
195
views
Taxonomy custom check box meta field not getting saved
I am trying to add a simple checkbox to the category page but it not getting saved for some reason. Please help to fix the code below. Basically, I registered a meta then created check box. CheckBox ...
0
votes
0
answers
173
views
create a "add icon" field in taxonomies page
Similar to this post but not quite, I have a Wordpress theme with free Fontawesome already installed and I wish to add a field in the "create Categories" box where I could type in and choose an icon ...
1
vote
1
answer
2k
views
Want to hide some categories from the categories meta box in the post editor for the two specific user roles
Recently, I am customizing the COLORMag theme in WordPress. I want to make my site as a multi-author website where random people will register and write. But as my theme's homepage shows all the posts ...
0
votes
2
answers
749
views
Custom Meta Box (SELECT2) Not Saving Taxonomy Terms
I have the code,
/*
* Add a metabox
* I hope you're familiar with add_meta_box() function, so, nothing new for you here
*/
add_action( 'admin_menu', 'rudr_metabox_for_select2_cat' );
function ...
0
votes
0
answers
197
views
Get meta values from parent post and save in child post
I have a custom post type "E-Books" with two categories "E-Book Title" and "Chapter Page", and custom meta boxes (table of contents, etc).
The E-Book post type uses one page template, and displays ...
0
votes
2
answers
490
views
Meta Box: display single image on an archive-template
I'm trying to get the url of an image from a MetaBox (plugin) filed on an archive-page.
<?php
if ( rwmb_meta( 'field-id' ) ) {
// Get images
$img_srcset_large = ...
3
votes
1
answer
2k
views
Add search to list of categories in post editor
I have many categories in my WordPress website. Each time I am adding new post it is very hard to find specific category that I need this time.
It would be much easier if I had search field right ...
1
vote
3
answers
5k
views
How to remove the "+Add Category" button from the Category metabox?
I would like to disable the "+Add Category Button" under the Category metabox so that anyone creating a post has to choose only from the list of existing categories.
I did check out another post, ...
4
votes
4
answers
22k
views
get_terms won't display product_cat or any other custom taxonomies when specified
Wondering if you might have some ideas on this problem. I’m googled for days but can’t figure it out.
Here’s where I’m at:
I have a meta box for the Woocommerce post type ‘products’. Inside the ...
0
votes
1
answer
329
views
Save metabox checkboxes values to custom content type
I'm trying to save checkboxes values to categories for custom content type. I have printed the values of the IDs, the array with checkboxes values and all looks good, but at the end, the values doesn'...
0
votes
1
answer
38
views
How can I add metaboxs to Admin Bar?
Is there a way to add a metabox to the admin bar?
My goal is to be able to change the categories, tags and publish date / time, status & visibility of a post on the front end of any post/page.
I'...
3
votes
1
answer
6k
views
Need help adding custom field to category
I'm trying to add a custom field for categories. The custom field is a single checkbox. I can get the checkbox to show up on the forms in the create new category and edit category pages but if I check ...
0
votes
1
answer
66
views
Can I restrict category availability?
Is it possible to restrict category availability, so that only specific categories are available in the category metabox on the edit post screen of a specific post type?
Example: can a category of '...
3
votes
0
answers
65
views
Render Selected Categories in Admin Edit Post Screen differently
Selected Categories for a post in the admin screen are rendered by:
// Put checked cats on top
$output .= call_user_func_array( array( $walker, 'walk' ),
array( $checked_categories, 0, $args ) );
...
6
votes
2
answers
1k
views
How do the 'tag' and 'category' (default) taxonomies do 'save_post' action?
I am trying to replace the categories metabox with what looks and works like the tags metabox because there's too much hierarchy and scrolling to check the appropriate categories and sub-categories ...
0
votes
1
answer
95
views
Category Template - to be editable from the backend?
I have different categories that includes posts of the category. I want to add text and images before or after the posts of the categories are displayed on the frontend. I want to solve this via ...
0
votes
1
answer
1k
views
How to restrict the amount of categories/post tags/terms for a post type post
I'm in need of a solution that allows me to restrict the user/author to only use maximum of two categories per new post. One post can only have one or two categories.
The only similar solution that ...
3
votes
1
answer
2k
views
Admin Panel - Disable Moving Selected Terms To Top of Metabox
By default whenever you select a category it moved it to the top of the term list, which in most cases it pretty user friendly. I want to disable this featured and leave my term list in the default ...
0
votes
1
answer
349
views
Custom meta boxes ID prefix showing on first category but not others
I've created a custom post type and added some custom meta boxes using this great resource: https://github.com/WebDevStudios/Custom-Metaboxes-and-Fields-for-WordPress
The problem, I've found, is that ...
1
vote
0
answers
447
views
How can I edit the 'Most Used' tab in the categories meta-box to show another custom taxonomy?
The 'Most Used' tab in the categories meta-box is the one that can be seen in the Edit Post section. I want to replace the Most Used tab, with a tab that lists another Custom Taxonomy, or edit the ...
4
votes
1
answer
6k
views
How to add metabox for post of specific category
I want to add Metabox for the posts of category=18 and i am using the following code but unable to do so . So please help me out->
add_action('admin_init','my_meta_init');
function my_meta_init()
{
...
3
votes
1
answer
2k
views
Category Search functionality on category metabox (wordpress admin)
I have lots of categories on my blog site. When I add new post and select category, I need to scroll down to find the category. Is it possible to add a search category functionality in category ...
1
vote
1
answer
863
views
Use Tag input metabox style for Categories
I am using Categories to create news timelines, For example http://newslines.org/misha-collins/ (check the cloud at the bottom of the page for more examples)
The problem is in the Add Post screen. ...
0
votes
0
answers
812
views
Displaying wp post categories into my custom metabox
Is there a way to display custom select box containing list of WordPress posts categories in my metabox?
(also my metabox in custom post)
Here are the illustrations:
This are categories from ...
0
votes
1
answer
38
views
Need to build custom metabox select prev posts by category
I am working on a personal project and need the ability to select a previous post based on a selected category. This will be a site devoted to building a pedigree. I really hope this makes sense. I ...
1
vote
1
answer
139
views
Category pie diagram meta box in post editing page
I am trying to build a plugin for showing a pie diagram based on the number of those categories which have maximum posts. This diagram is a meta box in post editing page. Here is my source of ...
0
votes
1
answer
503
views
Filter categories/tags to display in multiple metaboxes for selection in back-end
My site uses a lot of categories and tags for author selection in the back-end. To make it more user friendly for authors I need to arrange the categories and post tags in numerous metaboxes for ...
2
votes
2
answers
3k
views
How to customize the Categories meta box to allow only one category?
I'm trying to customize the Categories meta-box when adding a post.
I have added a custom post and I need the administrator to post a new post without the ability to use the top level categories and ...
29
votes
3
answers
35k
views
Only one category per post
How to make each post/page have one and only one category. Categories could have radio box instead of checkbox next to each.
0
votes
1
answer
579
views
How to add all categories into an array and extract the categories names and use it with a custom meta box
Basically I need to add custom meta boxes to pages and one of this options must be a list of categories from previous posts. I've managed to add the metaboxes and wrapped the categories in a array, ...
3
votes
1
answer
3k
views
How to Make a Categories Meta Box with Hierarchical Checkboxes on Frontend?
My website allows uses to post posts of a custom post type ("place").
I would like to display the same "Categories" meta box seen in WordPress dashboard when you add or edit a post on frontend:
This ...
8
votes
7
answers
13k
views
How to display non-hierarchical taxonomy as terms with checkboxes?
I'd like to have a non-hierarchical custom taxonomy displayed in the add/edit posts admin screen for a custom post type. Obviously, when the custom taxonomy is non-hierarchical, the meta box that's ...
1
vote
3
answers
3k
views
Limit a meta box to a specific category
I'm trying to limit a meta_box to posts in a specific category. I'm using this method: http://www.farinspace.com/page-specific-wordpress-meta-box/ and it works rather well But I can't seem to get it ...
1
vote
1
answer
1k
views
Show add_meta_box by selecting a specific category
In my plugin I want to display an add_meta_box under the WYSISWYG in the new post page, which is no problem and works fine.
But the box should only appear when a specific category (example: category ...
0
votes
1
answer
1k
views
WP Category Meta plugin fix? [closed]
Does anyone know of a fix for WP Category Meta http://wordpress.org/extend/plugins/wp-category-meta/ or a similar solution to add images and meta data to categories? With the latest version of WP it ...
4
votes
2
answers
1k
views
Changing Top Level Items into Radio Buttons in the Categories Meta Box?
I know it is possible to change the WordPress category list to radio buttons in the admin panel for posts, but I would like to make the just the Parents radio buttons and the sub categories or ...
0
votes
2
answers
511
views
how can we bring category metabox to Media Library/Upload New Media Page
I would like to place the 'categories metabox' found in new post/edit post page in the "upload new media" page. Any clues ?
0
votes
1
answer
482
views
create relationship between posts from one category and posts from another category
What I'm trying to do is adding in a post admin page a meta box, dynamically listing all posts from another category in the for of a check box list.
This way I can create relations between a post and ...
1
vote
1
answer
1k
views
Automatically exclude categories from metabox based on title
I am designing a website which will be used as a school PA system. Users will be posting entries into categories named for specific dates that correspond to school assemblies. We have two assemblies a ...
2
votes
2
answers
1k
views
WP 3.0.5: Best way to add custom metaboxes for post categories?
I haven't been working with WP for a while and noticed that there are some new features in WP 3+ such as creating meta data for taxonomies. I'd like to be able to add unique meta data setups for ...
13
votes
1
answer
6k
views
Is there an easy way to make a meta box have the tabs like the Categories meta box has?
My question is pretty much summed up in the title. I'm dropping a meta box in the New Post / Edit Post admin page, and I want to be able to set it up with tabs like the Categories meta box has. I ...
18
votes
5
answers
9k
views
Can I add a Category Metabox to attachment?
I am using register_taxonomy_for_object_type() to add the Category taxonomy field to Media uploads (attachments). I'm using this code to do so:
add_action('init', 'reg_tax');
function reg_tax() {
...