In this example of repeatable custom fields, we can see that the following jQuery is needed:
$('#repeatable-fieldset-one tbody').sortable({
opacity: 0.6,
revert: true,
cursor: 'move',
handle: '.sort'
});
And the HTML it controls is (simplified):
<table id="repeatable-fieldset-one" width="100%">
<thead>
<tr>
<th width="2%"></th>
<th width="30%">Name</th>
<th width="60%">URL</th>
<th width="2%"></th>
</tr>
</thead>
<tbody>
<?php
if ( $repeatable_fields ) :
foreach ( $repeatable_fields as $field ) {
?>
<tr>
<td><a class="button remove-row" href="#">-</a></td>
<td>NAME FIELD</td>
<td>URL FIELD</td>
<td><a class="sort">|||</a></td>
</tr>
<?php
}
endif;
Related Posts:
- How to use media upload on metabox post page without breaking TinyMCE?
- Trying to implement AJAX into my admin pages. Am I improperly enqueue and localizing my scripts?
- Individual Widgets per Page
- Using TinyMce with textareas in meta boxes on custom post types
- How to add add_meta_box to specific Page Template?
- Adding another state (spam, reject, approve) to wordpress comments?
- Unable to get Preview of Uploaded image within a Custom Meta box
- Using media-upload.php to upload mp3 via custom fields
- extend Meta Box / Document Panel
- How to store the value of a custom field dropdown select for post referencing?
- Add multiple images to a page sidebar
- Custom Meta Boxes: Store two values in one repeatable field
- How to load php file for specific page in admin?
- How to set default metaboxes on user creation?
- Metabox nonce PHP notice
- TinyMCE in Custom Metabox not loaded after upgrading from WP 3.1.4 to WP 3.2
- Problem in custom meta boxes
- ajax jquery update custom field meta value front end
- Multiplile values checkbox or select in custom meta box
- Create custom field key upon theme activation
- Undefined index error when saving content on metabox
- How to save multiple metaboxes?
- Metabox with multiple fields added by user and upload box
- add meta box using function.php
- Metabox image upload and custom field
- all tincymce’s switch when updating page after changing from html to text in custom metabox
- How to construct multiple meta boxes
- Force hide custom field metaboxes
- sort search results by custom fields using dropdown
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Metabox will not save
- window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes
- Odd PHP Code To Display HTML Of Meta Box [closed]
- custom field not saved
- How to create a Custom Meta Box with Name/Value Admin User Input Fields?
- Better Method for Multiple Meta Boxes
- How to Create Dynamic Fields in a Meta Box?
- Set front page option using custom fields?
- Unsaved changes in metabox inputs not detected in the block editor
- Button inside Custom Meta Box triggering the Update Button
- Adding auto-complete to custom gravity field not working
- How to populate custom field dropdown box based on prior selection?
- Custom Metabox additional item
- get_posts in meta box dropdown not showing latest posts
- Show user info in a hovercard [closed]
- How can you include custom post meta in search without calling each key?
- Display Custom Meta Box Field Only If Value is Present
- When creating a metabox do you have to create DB fields for the data?
- Specific coditional usage [closed]
- Set checkbox as checked by default in a metabox
- Singleton Custom Field (Meta Box)
- Custom metabox not displaying multiselect data in edit mode
- How to validate select field in post meta?
- Is it preferable to use custom code to create metaboxes instead of plugins (such as ACF) and if so why? [closed]
- Values entered in a meta box aren’t saved
- How add multiple wp_editor_box to new post
- Scripts and tags will not save or output from my custom meta box
- Using WP Color Picker in Repeatable Fields
- Displaying pages with a specific custom meta
- How do I save Multiple fields in a meta box?
- Enable a short code in the custom meta field
- How to validation for sanitize_URL?
- put saved metabox values back into fields and then display on the front end
- HM CMB: Role Select
- Custom metabox not working
- Jquery on custom-field backend
- Meta Box Plugin Cloned Fields – Multiple Foreach values
- Show array of meta_value in Edit Post Coloum
- How to Convert Custom Fields from Text to Array?
- Display metabox title for custom fields with values
- WP E-Commerce Custom Meta > Serialized array
- Working with multiple values and metaboxes
- show a specific metabox dependent on the page template
- Gutenberg add a custom metabox to default blocks
- Making custom meta box required (with error message if not filled in) on Gutenberg
- HTML for adding a meta box (basic text field) to page editor?
- Move the metaboxes to the very top of post editor
- How to improve my non-unique metadata MySQL entries?
- Adding text box with add_meta_box
- Add forms dynamically in admin pages?
- How can I ‘check’ the “custom fields” box from the Screen Options?
- How do I display a custom field in an existing form on the front end?
- get wordpress post loop by meta box date
- Sub Field of File Field
- If metabox fields has content display content
- Append custom field items to content from plugin
- Can’t save meta field value if the title not set
- Display Data From This Custom Media Upload Meta Box?
- When post is updated, custom metadata in text area field is overwritten
- Call the latest posts from a custom field group to be displayed on front-page
- Get custom fields when hover link of post
- CSS conditional on custom field value
- My meta boxes update wp_postmeta of posts but not of pages. What is wrong with the code?
- Can i categorise my meta box?
- I want my post to republish again after adding a custom field
- When editing a post with a custom meta box the values aren’t displaying correctly
- Use Metabox to enter Post Title
- Include custom fields into the content of a regular page
- Creating an If/Else statement using WPAlchemy MetaBox radio boxs
- How to get the value of particular get $meta value in wordpress