You can use get_author_posts_url()
or get_the_author_meta()
:
$values = get_field( 'editor' );
if ( $values ) {
$editors = array();
foreach ( $values as $value ) {
$link = get_author_posts_url( $value['ID'] ); //get the url
$nicename = $value['user_nicename'];
$editors[] = sprintf( '<a href="https://wordpress.stackexchange.com/questions/106854/%s">%s</a>', $link, $nicename ); //create a link for each author
}
echo 'Edited by: ' . implode( ',', $editors );
}
Related Posts:
- Adding custom field to an array
- Advanced Custom Fields: how do I check to see if a value is set in an field? [closed]
- Where are custom field values stored in the database
- Advanced Custom Fields – Get custom fields from parent page
- Can I query custom meta data through WP_Query
- Add custom field to the archive page?
- Matching Serialized Arrays with meta_query
- How to position a custom field before the editor
- When using add_post_meta and update_post_meta, is there any way to give the individual arrays keys?
- WP doesn’t show Array Custom Fields?
- Display post_object content using Advanced Custom Fields plugin
- Remove old custom field after import
- Unable to get Preview of Uploaded image within a Custom Meta box
- How do I search an array stored in a custom-field using WP_Query?
- Retrieve custom fields on Categories, using WP-API
- Is it possible to store arrays in a custom field?
- Order by custom field date?
- Change content before writing to database
- Order Custom post type loop by custom field (datepicker)
- Using Custom Function With Advanced Custom Fields
- use get_posts to get custom field data, but in one array
- automatically set “Featured Image” the same as the og:i that is set in a custom field
- Problem with adding exta field in metabox in custom post type
- Copying Custom Meta Values from existing post to a duplicate post
- Saving an array in a single custom field
- Calculate the sum of certain the_sub_fields
- Displaying Custom Fields on Post with Genesis Child Theme
- Unable to show ACF’s Image Custom Field properly in Genesis Framework [closed]
- Login & Register & Custom details WITHOUT plugin
- Send Multiple Custom Field Values Through the URL
- ACF won’t load from a custom JSON location
- Show ACF fields only on certain page in the backend
- Update posts after populating ACF field value [closed]
- How can I pass a variable set by ACF to header.php?
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Transfer self made functions.php custom fields to Advanced Custom Fields [closed]
- Get specific custom field keys from a post and put into an array
- WP Query Returning All Posts
- Passing Custom Field Data as Array to be Saved (Resulting Custom Field Array is inconsistent)
- ACF: How to get the full field name (meta_key) by a field key?
- Dynamically fill a post custom field with post publish date
- How can I store a file in the database in the same way WordPress and ACF do?
- Will loading too many ACF Fields cause slow down?
- WP_User_Query pulling ACF to loop
- Run a check for multiple meta key values
- Create an Array of Specific Custom Post Meta
- Remove Body Classes
- Calling the “wp-link-wrap” pop-up modal
- Print custom field in Query Loop block
- How to add Advenced Custom Fields In Single Post
- How to schedule a custom field value update?
- Order RSS content by an advanced custom field value
- Add new image block, set default class name and update it using Javascript
- Get an advanced custom field after post publish
- How to create a dropdown select of all items in an ACF field group
- Advanced Custom Fields dynamic update_field
- WooCommerce – Adding Custom Fields To Invoice
- Sort custom post type by multiple custom fields
- Sort alphabetically by custom field
- Redirect to another page using contact form 7? [closed]
- Advanced Custom Fields – display label and value only if value entered
- Vimeo thumbnails
- Advanced Custom Fields WYSIWYG More tag
- Walker class for sub-menu with ACF fields
- How to list Category list in ACF Pro’s Select Field to choose from [closed]
- Get all the posts where meta field with multiple choice has several values checked
- Custom fields issue [closed]
- Querying posts by latitude and longitude to build a Google Maps with several markers
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- How to copy data from a custom field to the post_content?
- WordPress creates new lines in postmeta table on post update
- change order of images attached to post
- ul list with only as many li’s as filled custom fields
- Retrive Image URL of Custom Fields in Theme
- Display custom field from the front page on another page
- How to Pass values to Custom Field through PHP in WordPress Posts?
- query_posts with meta_value
- Let Users Filter Posts by Custom Fields
- Filter posts by custom field (Advanced Custom Fields)
- Advanced Custom fields not available yet during publish_page action
- How can I output the custom fields wrapping with HTML
- The conditional logic only works to show or hide?
- Meta value Array
- ACF Plugin How to make the customer add more fields in the post?
- Custom field Search with Relavanssi
- How to get custom image field of specific post id
- Custom field to array?
- Show array of meta_value in Edit Post Coloum
- How to Convert Custom Fields from Text to Array?
- Custom field outside the loop and inside an array
- Get custom post fields from multiple metaboxes
- Working with multiple values and metaboxes
- Need to search a custom field (ingredients, one long string per post), but want it to allow phrases/non-exact matches
- How To Save Data From Remote APIs To ACF?
- Custom Field: how to save array of multiple key-values in WordPress
- comments_where Hook
- Rewrite comment form post ID on submit
- ACF field group not showing in page
- What am I missing in this Code Block?
- How to show ACF fields in Gridbuilder custom block