1
vote
1answer
34 views

Wordpress metabox file upload in custom post [duplicate]

I'm relatively new to wordpres development and am stuck at this issue. I have created a custom post type which shows up in the admin menu. I need a metabox in it with a file upload field. The metabox ...
1
vote
0answers
19 views

Including a meta box on a plugin page

I want to include the 'Comments' meta box (the one usually seen on the post creation page) on my plugin's admin page. Is there a way to do that? I am aware of how you can use add_meta_box() to add a ...
0
votes
0answers
61 views

Repeatable Meta Fields Not Saving

Need some help from the community as i am new to the plugin development of WordPress. I like to create a plugin for WordPress where i need a repeatable fields. But whenever i am saving the post the ...
0
votes
1answer
353 views

How to create Image gallery Metabox in wordpress [closed]

I want to create a metabox like woocommerce product gallery. I search on google find out related tutorial, plugin, example but unfortunately i don't get anything. So please, anyone can help me. ...
0
votes
0answers
16 views

Wordpress Option Api:Using Image in Checkbox

I am using radio in settings api.I want to replace "Left" and "Right" with image.My code is function menu_position() { $options = get_option('plugin_options'); $items = array("Left", "Right"); ...
0
votes
0answers
80 views

Meta Box Not Showing up in The Admin Page

Using WordPress 3.7.1 and PHP 5.4.12 I am trying to add a Meta box - text field to my Custom Post Type. My custom Post Type name is "news" and this is my code: <?php /* Custom Meta Boxex */ ...
0
votes
1answer
1k views

How to add multiple featured image in meta box in post editor?

I would like to add multiple featured image in meta box in post editor area apart from default available featured image. I have added the meta box but i have no idea on adding the featured image ...
0
votes
1answer
191 views

Any way to update_post_meta with html content? It gets stripped and becomes empty

So I am cloning some divs created from an array using jQuery. Here is an example. I have a drop down list that contains items to add to the meta box. The add button clones a hidden div based on the ...
0
votes
0answers
32 views

Get fields of a widget

I have a widget that has fields, so how can I get these fields in my Metabox. I have tried with this variable $wp_registered_widgets, but I can't get the fields. Is there any solution for my ...
0
votes
2answers
86 views

Display Data's metabox in page

I created a metabox has a textarea in page admin, So after validating the data is saved, but it's not displayed in the page (theme) I hope I explain well my problem. here is my code : <?php ...
2
votes
1answer
76 views

Rearranging Dashboard meta boxes with use of plugin/functions.php

I know how to remove meta boxes from dashboard, also how to add new ones, but is there a method that allows to rearrange them, for example move from side position to normal with use of functions.php ...
0
votes
0answers
80 views

Show Metabox Images in slideshow instead of static

I am using META BOX plugin from here http://wordpress.org/support/plugin/meta-box. The images which i add in pluupload uploader , these images show up as static images. What i need is to show them in ...
0
votes
0answers
40 views

Use Meta Box in Plugin of WordPress

Any one let me give an suggestion is much appreciated. I trying to create a plugin in wordpress. I do this in WP_LIST_TABLE In this we have an button add new option by this it get it into default ...
1
vote
1answer
932 views

Save selected item from dropdown menu in a meta box as a metadata value for a custom post type

I have been beating my brains on this one for days now and my Google-fu is failing me. I have created a custom meta box with a dropdown menu that lists all of the terms from a custom taxonomy. What I ...
0
votes
1answer
396 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. ...
1
vote
2answers
461 views

Saving metabox repeatable fields

This is a code that I'm adapting from https://gist.github.com/2057532. The problem is that I'm not being able to save the content from the new fields that I created. I had checked the other questions ...
5
votes
1answer
124 views

Listen to Post action

I am writing a plugin that adds a custom metabox to the post page. I would like to trigger an event when the user navigates away from the edit post page or when a user stops editing a specific post. ...
0
votes
1answer
769 views

Create & Save multiple Meta-boxes

I created a custom-post-type and multiple metaboxes which needs to be saved. I have a function that saves one metabox, but I can't figure out how to reuse this function to save all the metaboxes. ...
5
votes
2answers
1k views

Get List of Registered Meta Boxes and Removing Them

Is there a function for getting a list of registered Meta Boxes and removing them? I see there is a method for adding, and removing. http://codex.wordpress.org/Function_Reference/remove_meta_box ...
1
vote
1answer
506 views

Add a Save Button to Custom Meta Box [duplicate]

Possible Duplicate: Adding submit or update button to custom metabox? I added a Meta Box Like So: add_action('add_meta_boxes', function() { add_meta_box('CNMeta', 'Custom MetaBox', ...
0
votes
1answer
188 views

How to set/change another post author by custom fields or something else?

I need help! (sorry for my poor English, I'm from Russia) How I can to set/change another post author by custom fields or something else? For example: I want to public post, but define another post ...
0
votes
1answer
48 views

Adjust query on single

I am building an event manager. One of the template files I have is events-single.php which displays single events. At the bottom of this I have next and previous events using next_post_link and ...
0
votes
1answer
190 views

Meta box on options page save form problem

I have follow code from this link, https://gist.github.com/757903 and I have manage to create several metaboxes on my custom options page under Settings section. Stuff that doesn't work for me are : ...
1
vote
1answer
533 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 ...
1
vote
1answer
101 views

Wrap meta boxes & data handling for specific post types in classes?

I have a site with a few custom post types, each with their own custom data, meta boxes & assets (stylesheets, images, JavaScript). Typically I'd hook onto add_meta_boxes to register all my meta ...
1
vote
1answer
185 views

Dashboard - get status and position of metaboxes and pass them to ajax method

I'm wondering if it's possible to get status and position of metaboxes added to a dashboard-like page. The main page of my plugin has several metaboxes laying in a two-columns page and a "table of ...
1
vote
3answers
2k views

Conflicting save_post functions when passing the post id and saving custom meta boxes for different post types

Post save functions are conflicting with each other when adding them to the save_post action hook. 2 different custom post types with 2 different (one for each post type) custom meta boxes. I'm ...
0
votes
2answers
444 views

Moving/dragging a metabox removes TinyMCE's content

I added a TinyMCE editor to my plugin settings page, but once I move (drag) the metabox, editor's content get lost. (the TinyMCE editor is completely not editable until refresh) Here is how I added ...
3
votes
2answers
2k views

Dashboard like meta boxes in my plugin - how to save their position and open/closed state?

I am trying to mimic the dashboard meta boxes UI in my WP plugin - the small metaboxes. I have already styled them and also the drag & drop feature works as I loaded the following script and ...
0
votes
1answer
206 views

Can I attach a plugin via my add_filter callback contents?

I'm trying to add my plugin interface to the Category Editor. I've easily attached it to the post and page editor using the add_meta_box() filter, but there does not appear to be an add_meta_box hook ...
0
votes
3answers
392 views

Adding admin menus to wordpress

I am trying to add a menu box to Pages > Pages or Pages > Add New, basically whenever they access a page, be it to edit an existing page or add a new one, I would like to add a menu box under ...
0
votes
2answers
850 views

How to add meta boxes to the 'Add new post' screen?

I want the user to fill in a form (when they create a new blog post). The results of the form should be embedded within the new blog post. So I am trying to think of the best way of coding this. Meta ...
0
votes
1answer
857 views

How to add a widget to the post editing view?

I would like to add some features (via authoring a plugin) to the post editor in wordpress. Is there a way to add a widget to the post editor view? Alternatively is there an existing plugin someone ...