the function the_meta()
formats the data into an unordered list and you have no control over the order. Instead you should use get_post_custom()
and echo out only the fields you want and in the order you want.
change:
<?php echo(the_meta()); ?>
to :
$post_custom = get_post_custom($post->ID);
echo '<ul>';
echo '<li>'.$post_custom['Height'].'</li>';
echo '<li>'.$post_custom['Fueled_By'].'</li>';
echo '<li>'.$post_custom['Favorite_Quote'].'</li>';
echo '<li>'.$post_custom['Areas_of_Expertise'].'</li>';
echo '</ul>';
and change the name of the fields to match yours.
Related Posts:
- How do I set the default admin sort order for a custom post type to a custom column?
- Using meta_query, how can i filter by a custom field and order by another one?
- How to order adjacent posts (prev / next) by custom field value?
- Search that will look in custom field, post title and post content
- Sorting a query by custom field date
- Custom Taxonomy Template Post List with Sort Order
- How to sort a table of custom posts by column containing custom field
- How to Sort Custom Field Admin Column by Date
- How to Sort by Date When Using d-m-Y Format
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- WP insert post PHP function dynamically generated Custom Fields
- Sort by two dates. Default entry date and custom field if present
- How to make in WordPress admin panel sortable column for the custom field, that count the number of page impressions?
- Conditional to modify query results
- Create a random unique 6 digit number as custom field for custom post type
- Using several custom fields as custom post title
- Sorting custom post type columns with external data and without meta values
- Replace text in post from cvs
- Query & Order posts by custom fields
- WP_Query order by custom field, then randomly order some of results
- get_post_meta not working on publishing
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Using custom field content as expression in IF statement [closed]
- Displaying custom field according to date
- Add additional field to custom post_type
- finding and using post type fields in WordPress
- Sort custom post type by most current date picker
- Get data from PHP to JavaScript to set position of each post on front page
- Creating a “glossary” of WordPress posts of a specific post type
- Make a custom column sortable by a value from a different custom post type
- How do I show my containing my custom field ONLY if there is a set value on that custom field? [closed]
- CPT Repeatable Fields + Undefined Index
- Let users upload image(s) to the post from front end
- Need help with simple “if statement” checks to output particlular CPT data depending on what client uploads/fills out
- How do I ensure that post_type and Taxonomy use the same slug?
- Create an user checklist system for a course plateform using ACF Pro and ACF Extended
- Custom fields array to display it monthly
- Alike Shortcode using in Custom Shortcode
- Query custom post type that has a serialized relational advanced custom field value
- Sort custom post column by generated value?
- when looping through custom post data not appearing
- Custom post type order by post_title
- sorting in wp query based on custom field value
- PHP Notice: Unidentified index
- WordPress loop add heading before first of type
- Group/list/sort custom post type posts by date in tabs from acf datepicker field
- How to make a shortcode for my WP_Query Loop? [duplicate]
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Can’t pick up a field created with Advanced Custom Fields
- Get month and day from a Date Picker custom field
- Function not pulling image or text from custom post type
- Show Custom Post Type taxonomy term that matches custom field
- Order by custom field attribute
- Select Menu for Custom post Type does not save
- How do I filter a custom post type loop by a field?
- Get custom post fields and display them
- Send email on creation of custom post type and use get_post_meta()
- Sort CPT by taxonomy AND THEN by custom field
- How can I remove the “Add New” button in my custom post type?
- Development of a WordPress Search Plugin – Best Practices
- WP_Query orderby custom field then post_date in one query
- Using Custom Fields in Custom Post Type URL
- Adding meta values to permalink
- Search everything (posts, pages, tags, cpt, meta)
- front end radio custom taxonomy with custom post type
- How to get source of custom meta image?
- Get post info inside modal window?
- Displaying Meta Box Image
- What’s the difference between same wp functions get_posts(); functions in different form?
- Display custom fields on post excerpt or teaser
- Sort posts by custom fields value using dropdown menu
- A better way to add a meta box to custom post types
- Rows with custom columns not well formatted after Quick Edit save
- Custom post type, organized by categories
- How do I set all of a particular post meta to a value within the custom post type I’m in?
- Settings API – save multiple tabs at once
- How to create multiple editor?
- Targeting categories in custom fields
- Assigning a category to a custom post type in WordPress
- I need to add a filter to prepend the term ‘National – ‘ to the post title if the post is tagged to multiple states
- get_terms() returns Trying to get property of non-object error for custom taxonomy
- Accessing a protected property of a post
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- Update value inside array update_post_meta
- WP query_posts group by meta field related
- How to upload an image to a custom post type
- Where is get_post_meta value located?
- Confused about where to store my data
- Meta_query by date for Events archive
- Show tags of custom post types in WordPress
- wordpress form processing to custom post type not working
- Custom Post Type as invoice or order template
- Make each Value of custom field show related posts when clicked
- Filter CPT based on meta box value using Flexible Posts widget?
- Querying meta values within an array
- Filter Custom post type by another Custom post type
- Retrieve a post with its ACF repeater fields in wordpress
- Custom post type is_singular condtional not working when managing sidebar display
- Is it possible to specify a time interval (from, to) in ACF with date picker, or other custom field?
- Display ACF object field data using Elementor Custom Query