Tag Info

Hot answers tagged

2

Yes you can. See my working fiddle here: http://jsfiddle.net/MonkimoE/0wtgm8a1/ You need to add an id. example: <img class="img" id="imageid"..... Delete all atribute "data-width" and "data-height". because it will added automatically. Add this javascript: (you may change the '$' to 'jQuery' if doesn't work with your theme) <script> var ...


2

I am working on something that uses images in a very similar fashion. As mentioned, you will need to implement custom meta boxes for your 'product' post type to create an image field. I use the CMB2 framework to build out the meta boxes. It provides several field types, one of which is file_list. File_list allows you to set multiple images via the ...


1

I assume you would like to end up with something like this: Theme way If you want to put this logic in your template, as you state in your question, there is quite a bit of coding. You need to: create metabox create content (field and description) in that metabox - that's called "callback" in the meta_box docs create logic that saves data from the ...



Only top voted, non community-wiki answers of a minimum length are eligible