Linked Questions

1 vote
1 answer
3k views

dynamically add a custom field or metabox to custom post type [duplicate]

Possible Duplicate: Create more Meta Boxes as needed I am creating a plugin that registers a Custom Post Type. Let's call it "Cars". I am looking to be able to add custom fields(or metaboxes) ...
Roman Epicnerd Sharf's user avatar
1 vote
0 answers
48 views

How to write an efficient metabox with repetitive fields [duplicate]

Possible Duplicate: Create more Meta Boxes as needed I’m having a hard time to write an efficient code for the below Metabox. Since I do not want to use any third-party class, I’m trying to do it ...
Daniel's user avatar
  • 1,186
5 votes
2 answers
6k views

Why won't my metabox data save?

I have a custom post with a lot of meta boxes. I recently tried to add some dynamic metaboxes, using this question: Create more Meta Boxes as needed I managed to get the metaboxes to add nicely, the ...
gillespieza's user avatar
  • 1,275
4 votes
2 answers
18k views

Adding upload button in metabox

I want to add upload image button for the images and retrieve url. Can someone pls help me, i have been trying this for quite a few days. I'm using code from this thread Create more Meta Boxes as ...
Azad Rana's user avatar
2 votes
6 answers
6k views

Dynamically Creating Meta Boxes

So I was wondering if it's possible to dynamically create meta boxes in the post admin. I have a lot of data but don't want to hardcode every meta box needed in functions.php. An example would be a ...
Marco's user avatar
  • 209
4 votes
1 answer
8k views

Custom Meta Boxes: Store two values in one repeatable field

I am trying to create a custom meta box where the user can add fields as needed. I followed this tutorial: http://wp.tutsplus.com/tutorials/reusable-custom-meta-boxes-part-1-intro-and-basic-fields/ I ...
derekshirk's user avatar
3 votes
1 answer
3k views

How Can I Access a PHP Variable in Another PHP Function

I'd like to use the $atts variable from the lax_google_map_maker() function in lax_google_map_init(). How do I access it? I tried to 'globalize' it, but for some reason it didn't work. function ...
Laxmidi's user avatar
  • 961
0 votes
2 answers
3k views

Working with multiple values and metaboxes

I have multiple values I need to be able to punch into a meta-box on the post edit screen. EX: I am working with set-list information for concerts. Song 1 Song 2 Song 3 etc... I am always ...
mmaximalist's user avatar
0 votes
3 answers
3k views

How to store accumulate multiple option values in a single array using Options_API

I have created an option array that stores a series of options, along with their values. The problem is that I want to ACCUMULATE these options and store them in the options database. Meaning I would ...
Rob Myrick's user avatar
2 votes
1 answer
1k views

Can I dynamically create duplicate fields with the Settings API?

I'm not sure that my title accurately explains what I'm trying to do, but it's the best way I could think of to explain what I'm attempting to do. I'm writing my first Wordpress plugin, and while it'...
drewbug's user avatar
  • 123
0 votes
1 answer
2k views

How to display meta box data using "Meta boxes as needed"

I have been following this post exactly: https://wordpress.stackexchange.com/a/19852/14957 and have everything working in the backend but when I try to use echo get_post_meta($post->ID, 'songs', true);...
prochevnik's user avatar
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 ...
David Medeiros's user avatar
0 votes
1 answer
813 views

Dynamically replicate custom metabox in custom post type

I'm building a custom post type in Wordpress which will be used to author and display BuzzFeed style quizzes on a clients blog. Within the custom post type there are custom meta-boxes which represent ...
davidcondrey's user avatar
2 votes
1 answer
564 views

Metabox with multiple fields added by user and upload box

I'm trying to build system, where user can add as many fields as he needs to the post. I'm using code from this thread. Everythings works fine, except I can't get my upload working. Here's code I've ...
smogg's user avatar
  • 293
0 votes
1 answer
888 views

How do I create a Meta box that can be repeated? (with an image section and text area)

What I need to do is have a meta box that you can select an Image (via the built in media uploader), and then add a caption to it using a text box with the TinyMCE bar - and once this is done, another ...
Kris Nielsen's user avatar

15 30 50 per page