Creating a WordPress ad insertion area

0

Inside WordPress I wanted to create a field, which when I post a featured image it would leave the image there, simple thing (I think). Example is the Orbit Slider, where the featured images saw sliders. Does anyone know a simple way to do this or some documentation that tells me the way?

Let's say I want to separate 4 box types and when people create a post with a linked image they appear in that space.

Ex: I go to "Create Advertisement", I choose "Side Box 01" and attach an image according to the size of the box and type the link and it will appear there.     

asked by anonymous 15.10.2014 / 17:29

1 answer

1

You are looking for Custom Fields and Meta Boxes .

Whenyoucreateametabox,youusecustomfieldstostoretheinformation.Ifourfieldstartswith_itwillnotappearinthecustomfieldsbox.TheHighlightedImage,forexample,isstoredas_thumbnail_id.

YoucansimplyusethedefaultboxCustomfieldsandaddtheURLsoftheimages.Theninthefrontendpullsthevalueswith get_post_meta( $postID, 'minhas_imagens ); .

Or make a custom meta box ( Adding custom fields and other fields at the same time ) using the hooks add_meta_box and save_post , which is what the Orbit Slider plugin does . Or use a Advanced Custom Fields plugin to manage this without having to program anything.

    
15.10.2014 / 21:49