<?php
while ( $loop->have_posts() ) : $loop->the_post();
the_title();
echo '<div class="entry-content">';
the_content();
echo '</div>';
echo '<div class="custom-field">';
echo get_post_meta( get_the_ID(), 'name', true );
echo get_post_meta( get_the_ID(), 'title', true );
echo get_post_meta( get_the_ID(), 'bank', true );
echo '</div>';
endwhile;
?>
This is how you would display the custom fields below the content. I didn’t test it but it should work. Hope this helps. Also read Milo’s answer and read the Codex so you understand how it works.
Also it looks like you are using a custom query object ($loop
), so read this article as well:
http://codex.wordpress.org/The_Loop#Multiple_Loops_Example_1
Related Posts:
- Get the ID of the latest post
- Do_Shortcode not working for Embed
- tag.php doesn’t work with tags on a custom post type post?
- List most recent image uploads, but only for specific custom post type
- Fetching private posts or custom post types via WP-API with basic authentication
- If featured image doesn’t exist, show post content
- Getting a div content of a post in wordpress?
- Order Posts by Taxonomy and Meta Value
- Rename a current used post type
- Include custom post types in categories widget
- add_meta_box: Datepicker like the one for postdate?
- Getting taxonomy terms used by custom post type
- Custom field losing p tags on display
- How do I echo the post type?
- Categories not working as expected with custom post type
- Custom Post Type rewrite rules not working, how to alter the rewrite order?
- Calculating Bayesian average for custom post type
- How to customize admin posts based on the user who is logged in
- Custom post type – how can I make it a sub-url of another page?
- Merge multiple custom post types in a single archive template
- Problem adding column to WC Subscription [closed]
- apply filters only to specific post listing without check the url parameters
- register_post_type exclude_from_search argument not working
- query posts and custom post type with meta key
- Adding `supports` array to WordPress custom post type
- URI returns a post when it should return a 404
- Twenty Fifteen: Adjacent posts by menu_order [duplicate]
- Displaying a form for filtering in custom post type listing
- How to make custom post type feed title = taxonomies?
- Change meta box when the page’s template is changed
- Custom Post Type Loop throws 500 error when used in widget
- How can I update the permalink everywhere for a custom post type?
- custom admin screen or setting screen for a custom post type [duplicate]
- Define new user capability for custom post types?
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- Featured image overlay when changing post status
- Programmatically rewriting slug through functions.php but returns 404
- limit value taxonomy based on previous taxonomy value wordpress
- Problem: wp_query outputs all images on site
- pre_get_posts for custom page builder meta box
- Pre-styling post content to display in lightbox
- How to assign permissions for a CPT to a user
- Using POST method in meta box, no results
- How does order=asc effect a wp_query (its acting pretty weird in a loop)
- Global $post shows null in some of my custom post types archive pages
- Get Post Types in admin
- How to assign tag to custom post type in wordpress?
- Custom URLs in post types make it impossible to view archive
- How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data
- Add custom attributes to a post
- How to make a meta box?
- Permalink problems with custom post type and custom taxonomy
- Custom Post Type Categories URL not displaying posts
- Custom order of Taxonomy Terms
- How to add a lightbox to class mix?
- Custom post type subtaxonomy template
- tax_query (if the terms are empty)
- Getting only one post per category
- passing values from functions.php to template
- How I can made a custom post type to page templates?
- Odd behaviour for the update button when displaying a WP_List_Table
- Problem with adding custom post type meta to header by plugin
- List all posts in taxonomy term
- insert image with custom post type
- Query all post types but limit to parents
- get post count for related author
- Post/Custom Post Type URL Access
- Adding link to dashboard sidebar, nested under custom post type
- What’s an easy way of sorting custom post types manually?
- How to Implement Search Functionality?
- Adding /blog in front of single posts (only)
- Having a repeating custom field in admin custom post type, what I’d go better with, for DB’s sake? ACF repeater or query a different post type?
- wp rest api orderby field in a custom table
- Post template with breadcrumb needs to show page navigated from
- WP_Query get always custom post_type for first
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- Custom post types – meta_query: search lesson which starts sooner
- Saving custom post types post_meta over REST-API fails
- template id=”1921″ from inside editor doesnt work?
- WordPress Custom Post Type – Post Attribute: Template. Template shows up and saves on the back end, but the default theme file is being rendered
- CPT year wise archive based on custom date Field
- Is there a way to re-order the Custom Taxonomy drop-down on a Custom Post listing page?
- page not found for example.com/custom-post-name
- How to show Y number of custom posts after every X normal posts?
- Why is my custom post type shown in the wrong place?
- Display Custom Post if custom field is marked
- predefined custom field on registration page
- multiple custom post type category selection search
- Custom Search Template for Custom Post Types
- Cannot modify a registered custom post type rewrite slug
- List a custom post type’s posts ordered by nested custom taxonomy
- listing custom post type category page
- Inserting random posts
- Sorting custom post types by category?
- Allow authors to create article image
- Select Category as Page Parent
- Rewrite a filter as shortcode (or something like that) to use anywhere in CPT
- How to delete unnecessary custom post types in the UI
- Adding custom theme template to custom post type [duplicate]
- selecting custom post types and taxonomies for hub page listing blocks