I have used custom fields in the past to do something kinda like this. You name each custom field the same, and then in the value, give it some separation character. I used ||.
Then you can do something like this:
$output = array();
foreach($custom as $c)
$output[] = explode('||',$c);
Then you’ll have an array of arrays with your information. From there you should be able to do with it what you want.
I also wrote a shortcode to go along with this, that allowed me to display it anywhere in the page. That allows you to have more flexibility, and you don’t have to mess with a custom template.
Related Posts:
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- Media Attachment Custom Meta Fields not saving in Media Uploader when using jQuery UI Autocomplete
- Remove Dimension from wp_get_attachment_image
- Put the media uploader in a metabox
- explode array within shortcode
- How can I append custom data to images in the editor?
- How can I remove fields in the attachment editor?
- Saving Custom Field in Attachment Window in WordPress 3.5
- Add multiple images to a page sidebar
- How to set a default meta value for custom field
- Custom bulk action for media gallery items
- Add custom field to image editor
- How to save custom fields for attachments
- Display info from custom fields in all images’ HTML
- copy attachments to another post type and change attachment url
- ajax delete value from custom field array
- Save attachment custom fields on front end
- Insert attachment ID in custom field from media uploader
- How can I store a file in the database in the same way WordPress and ACF do?
- Getting the ID of any image for use in functions.php
- Validate data on attachment_fields_to_save
- How do i save and retrieve custom attachment meta?
- Custom field not updating when value is empty
- How do I modify the “Insert Media” lightbox in the admin to only show media items from a category?
- how to upload a image from frontend with wp_insert_post and also update_post_meta?
- modify wordpress caption shortcode
- Custom dropdown field added to media gallery; how to get it to save properly?
- Link FROM attachment to full post and get custom fields values on attachment page?
- WordPress Media Uploader custom Javascript not working
- Attach images to posts using custom fields (just paths to images already uploaded)
- Display MP3 as media using an URL from a custom field
- Show custom field on attachment page?
- Save attachment ID instead of URL in custom field
- Custom field in media library not saving, selected() function not adding “selected” to select list input type
- How to delete attachments associated with custom field type when post property changes? [closed]
- display custom media folders to wordpress media popup
- Adding thumbnails for non-image attachments
- Media Custom Fields – get a value with PHP
- Save Custom Meta Value on Media Upload
- WP_Query – Order results by meta value
- Custom query with orderby meta_value of custom field
- Orderby meta_value only returns posts that have existing meta_key
- How to enable revisions for post meta data?
- Including custom fields in search?
- Sort posts by custom field numeric value using dropdown
- How to position a custom field before the editor
- How can I display all values of a custom field from posts with a certain value of another custom field or from certain post types?
- searching in custom meta field
- How to add upload field in a custom taxonomy?
- Display thumbnail from custom field
- Bulk move (or copy) from a custom field to the post content?
- Getting Custom Field data from a page hierarchy
- Custom contact form 7 select with custom values [closed]
- limit amount of photos uploaded per cpt post
- Problem with adding exta field in metabox in custom post type
- Add WYSIWYG to Image Description field
- Calling custom profile fields?
- Show ACF fields only on certain page in the backend
- Audio file’s length (duration) is missing from Attachment Details in Media Library [closed]
- Use the WP media uploader dialog for uploading a form attachment (non-admin). Offering progress and drag and drop feedback
- Create Multiple File Upload Metabox in WordPress
- WP_User_Query pulling ACF to loop
- how to put a custom field value in variable
- Advanced Custom Fields dynamic update_field
- Custom Profile Fields move from BBpress to BuddyPress
- How can I output a list of values for a custom field, and posts with those values?
- Manipulate javascript code from custom made admin page menu
- Add additional ‘description’ field for defined roles / role metadata?
- Walker class for sub-menu with ACF fields
- Display custom field value part by part?
- Add custom fields to existing posts (admin pages)
- How do i get the attached images with custom value checked?
- How to disable Edit Post and Allow only Custom Field?
- Convert attachment ID into url?
- Cannot save underscore custom fields in one wordpress installation using xmlrpc and underscores
- Custom Fields Question
- How do I convert all custom_field php timestamps in the database to js timestamps?
- Display custom field value as a mailto: link
- Make separate text boxes for separate WordPress Custom Fields
- Sort by an ACF field in a tax_query
- Custom field metabox not showing in back-end
- Load one page with parent and child pages
- Why can’t I get the correct post permalink
- Use a different catalog image than the featured image
- How to Insert images in WordPress using code
- Ordering posts by custom fields
- How to diplay a div only if at least one author custom profile field is filled?
- Set custom field value when reaching expiration date
- Order by custom field in query multiple
- Returning website screenshot based on Custom Field
- Bulk Attach Or Insert Media To Post Without Opening Post Editor
- How to allow user to add to, but not edit, a post?
- How to organise via Custom Fields on Category Page
- Calling Custom Field within Function wrapped with Divs.
- Display custom field value into content with hyperlink
- how to add radio field on user meta on function.php?
- Foreach giving one too many list items, how can I remove the last empty line?
- Add custom fields to specific menus
- Truncating characters in Advanced Custom Fields works some places but not others?
- How to add an ACF only for parent term?