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
- Can’t sort custom column on user.php by number / meta_value_num?
- Foreach giving one too many list items, how can I remove the last empty line?
- Need to call this php function inside a modal window from text widget
- Custom field not showing
- Change Fields of Comments and make them searchable?
- Display filesize of custom field value
- I used a custom field for header image and can’t get it to show up on posts
- How to include custom field in shortcode (do_shortcode) in theme file
- How I can change PayPal IPN ‘custom’ field in woocommerce?
- jaredatch metaboxes on video post formats
- Query posts by Custom Meta (checkbox) & Genesis Grid Loop
- How to automatically create a custom field when a post is published?
- custom field with links
- Shortcode not picking up custom field
- add multiple values (array) to post meta_input
- Order by a meta field in query loop
- Assign class to Drop Down Selections in WooCommerce Products Custom Fields
- Grouped Custom Meta Fields without plugin
- How to display search query as formatted text?
- Problem display
- Google not index my Custom 404 page ?why?
- Dynamic background image used in css after selector
- Show/Hide Featured Image or replace it with custom field [closed]
- How to create a searchable database with a single-field search box at the front end? [closed]
- Tons of Custom Fields [closed]
- How can i put a custom field inside this php
- Add custom fields to specific menus
- Custom Fields after update to WordPress 6
- How to add a column showing real media usage (count) to the media list view?
- Custom fields: Split data from single custom field’s sub-array to separate custom fields when saving post
- How can I copy value from dropdown once I select it to text area as text?
- Dynamically update Custom Fields to display new dates
- Site uses wpdb to fetch meta_keys but just displays first meta_key from a page (the post uses the same meta_key “filmmaker” more than once)
- How to get all specific fields from one ACF Group?
- Broken images after importing posts and opening in Gutenberg
- How to apply Local Business Google Schema dynamically on a Custom Post single template?
- Create taxonomy terms from custom field values
- Add fields to edit in custom widget
- Archive for custom fields?
- Truncating characters in Advanced Custom Fields works some places but not others?
- Set new url from custom post field
- How to make donation button dynamic on chariti theme [closed]
- Add CSS class to posts with certain meta key
- Is there a way to read JSON data inside Custom Fields without editing PHP? [closed]
- Give attachments an archive page, and exclude unattached ones
- save all acf options in one meta_value [closed]
- Conditional display based on ACF checkbox
- How to add new Metadata options (Date, Author, etc.) for Posts?
- WP Query Args – search by meta_key or title
- acf field repeater link don’t work
- Can running a WP-Cron to update_post_meta cause performance issues?
- custom field value is blank or empty
- Saving multiple custom meta box fields
- How to add an ACF only for parent term?
- How to add a custom field to the comments “Quick Edit” screen?
- Match submitted array fields with the MYSQL database fields to update them correctly in PHP
- Multiple triggers when publishing, saving or updating a post in WordPress
- If possible a field ID transfom in a Custom Field?
- Close featured image modal windows with JS
- Best way for managing images of ads banners
- Crop custom image size vs actual size