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
- Output custom post shortcode. Help spot the error.
- How to count custom post types with conditional operators
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- Filtering by Post Meta Custom Fields – Performance
- WordPress posts with multiple fields
- wp_query to find posts by year and month
- WP_Query is printing out only one post when posts_per_page is set to multiple
- WP Query to displaying date and posts for that date?
- WP Query—Relationship between two custom post types and their fields
- GravityForm: Populate Dropdown with custom post type [closed]
- Return array of categories to php function for current post
- Link users to a custom post type
- How to output wordpress custom tags separated by comma?
- How to dynamically attach pictures to a carousel
- Loading all files within a directory
- Custom fields in Permalinks?
- Assigning the same custom meta box to multiple post types
- Blog page showing same content as homepage
- Custom Post Type Navigation on Custom Field
- query posts and custom post type with meta key
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- How to add a Custom Meta Box for more than one Post Type?
- Why do I lose the content of meta boxes when I leave the page?
- Dynamically add / duplicate custom meta in custom post types
- how to interconnect custom post types?
- How to insert content from another Custom Post type into Post?
- Custom Post Type without an archive page
- Get rewrite slug of custom post type in template
- Create a post in custom post type using field in registration form after users submit form
- Show Different Header on a Specific Post ID
- Problem fields custom date, time, and checkbox
- Get all Posts If has same custom field values in Posts
- Get Post Primary Category
- Weird problem happening with custom taxonmy when creating/updating posts
- WordPress custom meta field for custom post not storing data
- meta_query compare >= not working but
- A good strategy to print custom posts (offer) that are checked inside the metabox of a post?
- Conditional regex in add_rewrite_rule() for specific query filters & pagination
- Admin notice not displaying
- Copy custom field value to post title
- Can’t get order_by meta_value_num to work properly
- How to Duplicate (multiple meta box)?