Tagged Questions
1
vote
1answer
59 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
1answer
132 views
Plugin admin page meta_box toggle and order state not saving
I can't get the toggle state and open/close status of meta_boxes on my plugin admin page to be stored. The ajax response is always 0
I'm using meta boxes to hold sections of menu for a plugin.
...
0
votes
2answers
358 views
Good solution for adding jQuery tabs anywhere within WordPress?
Is there any solution for using jQuery tabs within the native WordPress scripts? If you know of a way to get any method of jQuery tabs working on the frontend and the backend please share your ...
1
vote
1answer
181 views
Arrange custom fields with drag and drop?
I am making theme for hotel and i made custom metabox with list of various custom fields that i would need in posts.
What i did is i made a list of fields like
booking
wifienabled
coffe
pool
spa
...
0
votes
1answer
94 views
Trying to implement AJAX into my admin pages. Am I improperly enqueue and localizing my scripts?
I'm trying to implement AJAX into my post edit form in order to hook a custom wp function into a link click. So far I've been able to register my custom js file into my admin header. However when ...
1
vote
0answers
229 views
How to reload a select box of posts dynamically?
I'm using custom meta boxes for a project. I have created a custom taxonomy (select box) and I have another select box populated with Posts. I need to only load the posts based on the selection of the ...
0
votes
2answers
277 views
Add text to metabox input text field from Thickbox
I have a custom post type with a metabox text input area that I want to have a shortcode inserted into from a thickbox when a link is clicked on from the modal window. Using the code below right now ...
0
votes
2answers
677 views
How to use media upload on metabox post page without breaking TinyMCE?
I'm using the following code for upload in multiple mextaboxes in a post or page admin section. Works for metaboxes but breaks the TinyMCE insert image. I want to know please how I can achieve this ...
0
votes
3answers
969 views
Adding URL of PDF from Thickbox in a Meta Box
I have created some meta boxes of pages on the theme i'm working on.
The idea is to have a input field, then a button to upload files.
The meta box is working properly.
When I click on the button, ...
0
votes
1answer
131 views
Unbind postbox click handler
I'm trying to unbind the click handler on post metaboxes so they no longer hide when the handle is clicked. I need to do this because I use the handle to contain <select> elements & when ...
2
votes
1answer
1k views
Timepicker-addon doesn't show - Datepicker works fine?
UPDATE
It seems that it might be a problem with the,
$("#opening_time").datetimepicker();
$("#opening_time_end").timepicker();
$("#closing_time_end").timepicker();
If there is a ...
1
vote
1answer
325 views
Add X meta box inputs based on form at top of meta box, how to do it right?
I am setting up a meta box that controls the number of ingredients for a recipe. As each recipe will have a different number of ingredients I decided to use a simple text input and button to set the ...
0
votes
1answer
304 views
Disable collapse of admin meta boxes
I have been attempting to disable the ability to collapse admin meta boxes. By the looks of it WordPress creates this functionality in postbox.js /wp-admin/js/ but I have been unable to find a hook or ...
2
votes
3answers
365 views
validate a metabox based on the category that is selected
Ok Let's say I have 2 Categories. If a user select category A, they have to fill in metabox A and similarly for category B, it's metabox B. So my question is, I want to do a validate check, whereby if ...