Questions tagged [metabox]
Refers to a box-like reusable user-interface component common in the WordPress backend.
1,648
questions
0
votes
1
answer
22
views
My custom meta box with textarea field not saved
I created a custom meta box for my custom post type with address, phone, and map but only the map field type textarea not saved.
My code here:
// Add meta box
function vn_store_add_meta_box() {
...
0
votes
1
answer
10
views
Custom fields empty after refreshing page
I have added some custom fields to the Gutenberg editor, the purpose is getting these custom fields loaded in the custom-post-type.
Thats is all working, I was able to get the custom-fields in the ...
0
votes
0
answers
17
views
custom post type with metabox custom fields
how to make meta custom fields in custom post type name jobs_board_cpt , I am using boilerplate ?
public function jobs_board_cpt() {
$labels = array(
'name' => ...
1
vote
1
answer
37
views
Metabox conditionals depending on post format and template in Gutenberg
In the classic editor, I used jQuery to display metaboxes depending on the current post-format or page template selected. If a user selected a different format or template, they would toggle depending ...
0
votes
1
answer
23
views
Second featured image only shows in metabox preview after saving a post in the wordpress editor
I am trying to add a second featured image to the Wordpress post editor, and it seems all be working. When I select and image from the mediauploader the first time the image shows in the preview of ...
0
votes
0
answers
24
views
coauthors_plus_edit_authors to display metabox based on author caps
Need to display the coauthorplus metabox with author capabilities.
On the documentation of the plugin they say its only with super admin and editor that the metabox is available.
Any idea to add a ...
0
votes
0
answers
51
views
Move metabox up on side WordPress Post admin
I have the following PHP code for WordPress. I'm placing it in my functions.php file. It adds the metabox on the bottom right side for my Post pages in the admin area. Is there a way for me to get it ...
0
votes
1
answer
62
views
doesn't save custom meta box data wordpress
My WP doesn't save my meta box data. I see the metabox and the field, but the data doesn't saving. Somebody could help me? Thank you. This is the code:
<?php
// Function to add a metabox
function ...
0
votes
0
answers
16
views
Filtering Tabs in a Custom Post Type's Edit Page
I am using LearnDash to create courses on WordPress.
A key thing is that I have other non-admin instructors that will also help me create lessons.
The thing is, the lesson edit page has a "...
0
votes
0
answers
15
views
How to show metabox in custom php menu page
I've created a custom dashboard for wordpress and I want to show some custom metabox on it. Is there any way to achive this with a filter or function of wordpress? I've tried using the do_meta_boxes() ...
0
votes
1
answer
61
views
Only display top level taxonomy on the edit post page with option to expand sub-categories
We have a custom taxonomy that is hierarchical. It has so many sub-categories that to scroll through them in the edit post page is proving problematic for editors.
Is there a way to initially show ...
1
vote
1
answer
154
views
Using add_meta_box on a page with file upload and importing fields
This must be fairly simple :) I'm trying to import data into ACF repeater fields and am mostly following the answer to Add special meta box to custom post type
But what I have below isn't saving the ...
0
votes
1
answer
19
views
Saving custom input from settings sidebar of pages in Wordpress
I created a meta-box with an input field in the settings sidebar of pages. Now I try to save the value, but it does not work. Maybe the problem is, that I try to do this with pages and not with posts. ...
0
votes
1
answer
170
views
How to change the text of Publish Button
I am trying to change the text of the publish button to save.
I could change the text.
BUT, When I click Status Edit button and OK button, it change "Publish".
How can I fix this?
This is ...
0
votes
1
answer
220
views
How can I put a checkbox in the post editor
Up to now I'v been able to insert text custom fields and number custome fields in my post editor page, now I need to insert a checkbox, as a new meta field. I write here the code I have for a number ...