Replace the_field with get_field. The former echoes data without the need to explicitly call echo on the function name, the latter returns data, which is what you need when storing data against a variable for later use in your function. In your case, concatenating the first/last name prior to its output. That should fix your list.
Although the tags have been edited (thanks toscho), in case anyone is wondering, since it’s not clear in the OP, the function the_field is not to be confused with the native get_post_meta (and other) WordPress functions that handle retrieval of post meta data. Instead this particular function and it’s counterpart in get_field are part of the plugin “Advanced Custom Fields”
Related Posts:
- Get value in custom field with taxonomy [closed]
- Order get_terms using a Custom Field
- Remove Category description textarea
- Advanced custom fields – taxonomy terms images [closed]
- Automatically assign taxonomy term if custom meta value exists
- Outputting an array of term meta values in a custom WooCommerce tab?
- Operations with custom fields values in a loop
- Print terms with taxonomy and metabox value
- Can I use a Custom Meta Value inside of ‘get_the_terms’?
- Search Tool only refreshes Page without showing results
- Display value of custom field of custom taxonomy in single post?
- How to fetch the data from Advanced Custom post when we search specific keyword or field name related to the post?
- WordPress implode & wp_insert_post question
- How to support fifteen thousand terms in WordPress?
- Can’t get taxonomy ID for each post on archive page
- Show related posts on single.php, grouped by taxonomy terms, with Advanced Custom Field post object selected
- How to use custom slug and custom templates for custom taxonomy?
- Count tags for current post and save into custom meta field (and update it on post edit)
- Create new Taxonomy, add extra fields, register terms AND extra fields values?
- ACF Custom field not showing in Timber Taxonomy page
- How to filter a taxonomy meta field to the ‘single_term_title’ filter hook
- Retrieve posts by term id custom query
- Change order of Custom Taxonomy List
- Query users by custom taxonomy and user role
- Determine Term depth
- Order get_terms() By Custom Field
- Is there a way to disable a term rather than deleting it?
- Best pratice to make taxonomy terms translatable without changing slugs?
- Front End Post Save Child terms
- wp_insert_term auto unique name
- wp_get_object_terms – How can I order the resulting array by hierarchy?
- Retrieve a specific field from taxonomy term through advanced custom fields [closed]
- Display Custom Taxonomy Terns ordered by meta_value
- Custom Taxonomy terms with latest post ordered by date pagination issue
- Echo taxonomy term meta on author.php
- Hierarchical display of custom taxonomy
- Listing child terms of parent term
- Display the taxonomy name of the current term
- get_terms of post->id
- Dynamically tax_query terms
- How to get a list of taxonomy terms which are being used only within certain post types?
- WPML Translating a term/taxonomy programmatically
- Get Custom Field Values by Another Custom Field in WordPress
- how to search in custom fields & custom taxonomy for custom search
- get_the_terms() to show all custom taxonomies
- Custom Taxonomy Archive BUG
- Can I limit term selection to one plus parent?
- Insert form checkbox at bottom of taxonomy edit term page
- how does get_term_by know which term to return when the same term appears twice in a hierarchical taxonomy?
- Changing stylesheet depending on custom taxonomy terms
- Custom fields ‘for’ custom taxonomy?? Can someone explain why?
- Taxonomy archive showing no results
- How Can I Change a Taxonomy URL Based On The Originating URL?
- Retrieve value of a category’s custom field
- Changing taxonomy term by slug (wp_update_term)
- How to show all possible parents and children of a hierarchical taxonomy term?
- Failure to add term meta
- Hierarchical Taxonomy Terms Select Menu Output with selected=”selected” Set
- Removing “s” from search with custom parameters
- Rewrite rules for varying nested terms of custom taxonomy
- List Posts For Terms Of A Custom Taxonomy For Any Post Type
- Query posts from a child taxonomy term id
- get_terms() duplicate first term of a custom taxonomy
- Best structure for entering recipes in a WordPress theme?
- Update table wp_term_taxonomy.count after INSERT INTO via SQL
- Get all attachments by custom taxonomy – term
- Echo custom taxonomy slug
- Get terms that don’t belong to current post with a shortcode
- Admin (All posts) stop responding problem
- Website loading slowly – Advanced Custom Fields images
- saving meta/custom field to tag
- Remove a href from this code
- How to get posts that contain multiple terms from multiple taxonomies?
- Cannot delete or edit a single term in a custom taxonomy, taxonomy name is wrong?
- How to check if a post has at least 2 terms from a custom taxonomy attached?
- How best to store data (URLs and IDs) extracted from posts and pages using custom taxonomies
- What’s the best way to add taxonomy’s image in 2017?
- delete term from taxonomy and assign in new one
- Wp_query…a type of term a different div
- Adding Child Terms Programatically – No Warning but No dice either
- Show single Child Category on Custom Post
- Set post terms by term id
- using wp_insert_term to create custom terms for a custom taxonomy from frontend form,
- ACF – Retrieve custom taxonomy from a relationship field
- Display term picture of each post in a loop
- Get Terms of custom Taxonomy of products with certain Product Category
- Problems using get_the_terms in a plugin
- add pagination in wordpress page template
- WordPress taxonomy terms archive template help
- Filter “get_terms” query
- Show message if term slug changed
- Get only selected custom taxonomy
- How to show selected check box vendors on front end home page?
- How to add meta fields to custom taxonomy add/edit page?
- sort Posts by custom user filed
- Register custom taxonomy from a Advenced custom field option page
- get_terms returns array starting at 4
- Get post terms with hierarchical relationships
- Multiple category lists on one page
- get_the_terms inside save_post gives old terms