All Questions
1,647 questions
0
votes
1
answer
30
views
Dynamically getting tags in post edit screen
I am trying to dynamically get the post's tags as the user adds them while editting a post, but I have not found any hook related to that action.
I know I can make my own hooks, but the thing is that ...
0
votes
1
answer
84
views
My meta box don't want to save value
I've been fighting with that for three days and I can't figure out, why my code doesn't work?
<?php
function my_custom_post_product() {
$labels = array(
'name' => ...
0
votes
1
answer
52
views
Just the First Metabox what saves the data!
I have a problem with meta boxes that I working on! I'm making a small meta box framework for my theme but I got a weird problem that is the first meta box the first array it's the only one saves ...
0
votes
1
answer
580
views
Add_Meta_box to custom page (formidable edit post)
I'm working on a minor "project" on my wordpress site, and im trying to add a custom metabox to the formidable - edit post(page?) screen. But i seem to be unable to figure out how to do it.
...
0
votes
1
answer
30
views
I need show posts by customer (Shortcode)
I have customers in one new custom post type. And in my posts is created one metabox with all customers (select option). Only need compare, what option select user and show all post by this customer ...
0
votes
1
answer
680
views
How save custom meta type posts multicheck grouped by taxonomy (with CMB2) [closed]
I'm using CMB2 (https://github.com/CMB2/CMB2) for add new meta to post types.
I'm trying to add a new custom meta with a list of posts grouped by taxonomy, but I do not know how to save them.
I would ...
0
votes
1
answer
32
views
why my wordpress dont have toolbar like, plugin, themes and other?
why my wordpress dont have toolbar like, plugin, themes and other ?
thet is screenprint of my wp.
0
votes
1
answer
277
views
Slug is changing when I use WP_Query in a metabox of a post
I want to use a metabox that allows the author to select the related post in all post edit pages.. The codes are working when publish the post, the meta is being saved.. But the post's slug is ...
0
votes
0
answers
36
views
Save datapicker date into wordpress admin
i have question: http://prntscr.com/frxplp i need when user pick to date in datapicker and press button and filled all field in form http://prntscr.com/frxr7g, need to save this data with selected ...
0
votes
1
answer
53
views
Metabox - Displaying the Value of a Metabox
newbie here.
I am struggling around for hours. I am developing my first WP Plugin where
I can enter products (product title and description).
It seems that wp saves my description in the db, ...
0
votes
1
answer
157
views
Can't get meta values to save
I'm trying to write a class to make meta boxes. The boxes display fine, but I can't seem to get the values to save. It seems like the Save function isn't being called at all.
As a further experiment,...
0
votes
1
answer
291
views
php output of generated custom metabox
I have used WordPress Meta Box Generator v2 Beta website to generate a custom meta box to upload a custom image file in to custom post and in admin side everything seems to work fine but I can not to ...
0
votes
0
answers
19
views
add instructions to upload pages and / or forms
I want to put file prep instruction on the media upload forms/pages/tabs.
There are a lot of people using the admin. There is a CMS guide but it is rarely read causing issues with page load slow ...
0
votes
1
answer
33
views
how to update editor content from metabox
hello am trying to update and add editor content from metabox not using the default editor so i tried to use
wp_update_post($array);
but doesn't work it cause issue
Fatal error: Maximum ...
0
votes
1
answer
453
views
get wordpress post loop by meta box date
hello i just added date input by using metabox but i can't sort the loop in the front end page by latest metabox input date
i try this
$args = array(
'post_type' => 'post',
'meta_key' =>...
0
votes
0
answers
396
views
wp_editor metabox does not output the saved html format
I have used wp_editor as a meta box for additional contents. Although it saves and displays the content, it does not save the format. Meaning, heading and paragraph tags are saved as simple text ...
0
votes
1
answer
399
views
Unable to save multiple images in wordpress
I'm creating meta box to attach gallery of images into posts. But I get only one image after saved. Please correct my callback function below:
function save_custom_meta_data($id) {
/* --- ...
0
votes
1
answer
560
views
check_admin_referer not working in custom meta box for custom post type
In my callback function (the one which output HTML for forms) of add_meta_box, I am using
wp_nonce_field( 'uniqueid', 'my_nonce' )
Now in saving function, I am using this at top to verify nonce
...
0
votes
1
answer
170
views
Metabox messes up permalink
<?php
add_action( 'add_meta_boxes', 'la_season_sponsor_add_metaboxes' );
function la_season_sponsor_add_metaboxes()
{
// TEMP-FIX FOR FAULTY PERMALINKS
global $post, $wp_query;
$...
0
votes
1
answer
68
views
Custom meta box data not saving
I created this meta box for my custom theme. I thought I followed all the guidelines, but I'm hitting a wall. The meta box and all fields are showing, but when I update, the data is not saved.
Meta ...
0
votes
1
answer
138
views
Hiding the widget meta box in the Appearance->Widget screen
I don't want to unregister_widget() the widget on the screen, rather, just hide them for admins. Any ideas? I tried: remove_meta_box('widget-id', 'widgets'); but I couldn't figure out the second ...
0
votes
1
answer
49
views
meta field for numerous links
I'm currently trying to store something which looks like this.
[links] => array
(
[0] => examplelink.com/RANDOM-MD5
[1] => examplelink1.com/RANDOM-MD5
[2] => ...
0
votes
1
answer
117
views
How to add custom Author Info Box to blog posts "only" and NOT custom post templates
I’m not a php developer. I can handle html and css and my goal is to become proficient with php and javascript but right now I dabble with the latter two. In this case, I added some code to functions....
0
votes
3
answers
296
views
Get value from meta box
I'm trying to write a plugin that adds a value from a meta box to a post on save_post. But I can't figure out how to get the value from the form field in the meta box This is the relevant code:
...
0
votes
1
answer
584
views
Saving custom fields for WP_Query to retrieve
Thanks in advance for any help offered. I am writing a plugin for wordpress that has multiple custom post types sharing some custom meta boxes and fields. I have everything working and saving ...
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
133
views
My own metabox checkbox plugin only saves the last value I've checked
I'm building my own metabox with checkboxes. I want to save the values of the checkboxes I've cheked as categories (IDs).
I have build an array to append the values of the checkboxes, but it only ...
0
votes
1
answer
340
views
Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
I have a custom post type, and in there I have a metabox with a dropdown. The dropdown is populated with the titles of posts from another custom post type.
My metabox system works. I tried ...
0
votes
1
answer
420
views
CMB2 Post Search Field displays/repeats initial post if left empty
I'm using CMB2 and the CMB2 Post Search Field to create a one-to-many link between different types of posts (including custom post types), with the post search field in a repeatable metabox group, so ...
0
votes
1
answer
110
views
How modify comments metabox on post edit screen in Wordpress?
I search a solution for custom the comment's html on post edit screen when i click to the button "add new comment".
I want to add a ACF field in the form.
The codex not explain a solution...
Or an ...
0
votes
1
answer
2k
views
Create Meta boxes dynamically
I followed and created a meta box using all code from this question here:
Create more Meta Boxes as needed
Basically only two fields are created when you click on Add track button:
Song title field ...
0
votes
1
answer
114
views
Generating Custom Post Type list, within admin of another custom post type
Is there a way to generate a custom post type list within the admin of another custom post type and use that information as meta data?
For example, there is one custom_post_type named "Attorney" and ...
0
votes
1
answer
337
views
How to show all the associated posts with specific date of data metabox?
I need someone to answer this question.
I have metabox which shows date:
$date = rwmb_meta( 'pb_match_date', '', $post->ID );
I want to get all the associated posts with specific date of that ...
0
votes
1
answer
1k
views
Update custom table on metabox POST
So here is the problem : I have created a metabox field for my posts and I want it to update a custom table (wp_location) in my WP datase... The idea is to update the table with the value of the POST ...
0
votes
1
answer
46
views
Do something with thumbnail image on post publish
For example get width and height of the image and save it to a custom field.
0
votes
1
answer
168
views
Collect custom post in a calendar
I'm working on a site in which I have incorporated a calendar of events, which also serves as navigation in the events page. That is to say that when I click on a calendar date associated events occur....
0
votes
1
answer
106
views
How to retrieve custom post type permalink in another cpt?
I have a metabox which shows custom post type named football_player as dropdown.Now I want retrieve the permalink of this custom post in another custom post named football_team template. Everything; ...
0
votes
0
answers
27
views
Sub Field of File Field
Is it possible to add sub text field alongside with file field (for PDF upload) with "meta box" plugin or even custom code?
taking into consideration that the file field is multiple ex:
File #1: [...
0
votes
2
answers
6k
views
How can I remove this sidebar from my Search Results page?
I don't want to display this particular sidebar on my website's search results page because it displays details (SITE ADMIN, Wordpress.org, etc) which I want to hide from the user.
How can I hide or ...
0
votes
0
answers
175
views
Save input form on custom field
I have an idea but I don't know if it's working on wordpress.
I wanna save/stock input values on a custom field or metabox, is that something can work on wordpress? I couldn't find any way to develop ...
0
votes
0
answers
194
views
Custom meta box in editor of custom post type not working
I made a plugin using a custom post type, then I added a shortcode to display a specific post of that type in any page the user wants to. Now I want to put a meta box in the editor page so the user ...
0
votes
1
answer
89
views
issue with saving custom metaboxes fields
I have a post_type named room_type and a taxonomy room_facility. Between them I want a relationship. Furthermore I would like to add a value for each relationship room_type and room_facility. So the ...
0
votes
1
answer
175
views
How to shows CPT which has specific meta key?
I am trying to show post from CPT, but it shows no records.I want to show posts which has meta_key:match_details_competition_name and match_details_session_name.Hollowing are my codes.
function ...
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'...
0
votes
1
answer
403
views
Custom fields changes the formatting of metabox input
I have just started learning Wordpress so please go easy on me here. I have managed to setup a custom metabox with some text fields. If I enter some sample text in these input boxes, the code gets ...
0
votes
0
answers
56
views
Custom WP Meta Box - Use data from within the post screen inside meta box
I have created a custom Meta Box that appears on my WP post edit screen. I would like this box to be an image preview of sorts, the URL for the image should be controlled by another field on the post ...
0
votes
1
answer
265
views
How Add a Save Button to Custom Meta Box without Leave/Stay js Dialog?
I remove the publish default button and add a custom submit button for the post page, but wordpress save it like a draft after showing the (js alert) dialog: "stay or leave the page?"
0
votes
1
answer
72
views
How to show select_advanced content instead of ID?
When I am using this code, it only shows the ID instead of its content. I want to show the content instead, how can fix this?
array(
'name' => __( 'Select Home Team ', 'themepixels' ),
'id'...
0
votes
1
answer
2k
views
WordPress AJAX load post metadata in modal
I have a custom page template (front-page.php) and I have a custom metabox which is assigned to this page template.
Metabox have 7 sections, and each section have 2 inputs. It looks like:
1. Client ...
0
votes
1
answer
688
views
Render the metabox input values as HTML
I'm new to PHP and WordPress.
I've created a site on WordPress, where the user can add an HTML code snippet (the inputs are taken using a metabox and displayed). The problem is WordPress doesn't ...