your main problem is
<?php query_posts('post_type=case_studies'); if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
This means if there are posts, then while there are posts, get from the current post. After processing, it will just keep iterating through the posts.
Delete this line and the end while line.
Instead, use this
<p><?php echo get_post_meta(get_the_ID(), "_Description", true); ?></p>
This gets the current id of the current post.
Having said that, please do some validation of the results you get from get_post_meta to ensure that there are results before echoing it out.
Related Posts:
- what is the correct way to compare dates in a WP query_posts meta_query
- Conditionally Query Custom Post Types by Post Meta for Blog Home Page?
- Display custom post type from dynamic custom field
- Get posts between custom dates
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- Filter date from post meta when date is in string format
- HM CMB: Post Select Field for CPT ID
- Use WP_query to match post types based on custom field values
- update a posts of other custom post type
- WordPress custom post type
- Custom post type archive page for multiple post types
- Importing Data from a Non-WordPress database, into WP
- Listing all term items alphabetically / sorting loop
- Getting thumbnails of a custom posts featured images in a page-templates metabox
- List Taxonomies: Don’t list taxonomy if it has no post – depending on custom post-meta?
- Remove Post Custom Meta Box
- pagination not working for category.php (custom post types in categories)
- Can’t publish custom post type – “You are not allowed to edit this post.”
- How to display Related Posts based on number of taxonomy terms matched
- Custom fields for custom post type
- Show future events based on custom field AND order by date
- Meta Data for Custom Post Type not saving
- Using preg_replace to filter custom textarea
- Check if post with same meta value exists
- query_posts adding extra code to homepage
- How to show only the most recent post on my custom post type archive?
- Get only used meta_values
- If Post Meta Equals Current Title Conditional Advanced Custom Fields
- How to make WP_Query not to show irrelevant posts?
- Is there a way to exclude posts based on meta_values?
- What is the ID parameter for custom post types in query_posts?
- Loop for custom post types filtered by a taxonomy
- Do posts, pages and / or custom post type objects have unique ID numbers or can there be multiple objects with the same IDs?
- Archieve.php not loading for custom post type
- Submitting Custom Post Types with custom fields from Front-end form
- How to limit post per page of custom post type?
- create custom meta box with default value
- Get $post->ID from a URL
- Displaying a div from an assigned meta_value when on a page
- Custom query – get_the_terms not work
- Meta data (Tags and Categories) for Custom Posts not showing.
- Display different information of a custom post type
- Create Array from custom post type to display a slider
- Setting Post Title via Meta Data returns Auto-draft
- How to Echo Metadata Value in Currency Format
- Issue on Working with Metabox – Checkbox to enable Sale Items
- Filter posts by tax (dropdown) and meta value
- delete_post_meta() for whole CPT / multiple posts?
- 3 random images from custom post type, each in a div with a diffrent class
- How to get specific post meta by title or id
- Why are some of my custom posts not showing up on my page?
- Publish and save specific postmeta to a filtered post_type
- post-per-page and offset not working
- Control content before and after custom post type loop
- Custom post type, custom taxonomy, query posts only from taxonomy (children of)
- Display custom posts randomly in custom taxonomy archive
- Getting all ID’s matching a title in a custom post type
- How to move a post to different post type with all meta data?
- why is the current page title being output?
- Why do I have to press the “Update” button twice to save my meta box values?
- Count custom post type based on two meta data
- Querying multiple values from a single key
- Not able to export large no. of posts in csv
- attach CPT data to a taxonomy
- How can I display a drop-down select of Post Names
- how to show records that don’t have custom meta value
- Pagination not working on custom query on a page
- Loop through posts of only 2 statuses
- Targeting custom post type via functions.php doesn’t work
- WP API Response does not show my registered metadata
- How to detect that the save_post hook is calling the callback associated to the current edit post page only
- find custom post type post by searching its custom field with my string
- FacetWP paging custom wp_query
- $post->post_meta not pulling any post in wordpress/php
- Values from meta-box not on $_POST
- WP_Query of custom post type sorted by meta_key has unexpected results
- Returning a custom content types with meta values
- Custom post type suddenly stoped working after WordPress 5 update
- Batch Extract Date from post title and put into ACF custom field
- copy images from custom field to another custom field
- How to show custom field on specific custom post type posts only when filled
- How to handle this specific case of custom post type?
- Save CTP post meta different values each day without overwriting previous values
- get_post_meta returns NULL in front-end, but correct result in back-end
- Can’t change posts per page in WordPress Post Type Query
- postsperpage value not being applied
- Cannot obtain custom meta information
- Problem with adding custom post type meta to header by plugin
- is_main_query() never called on WP 4.4
- How can I output WPAlchemy repeating fields meta values in my page template?
- Meta box data is saved but NOT displayed in the meta box text field. Why?
- How to call a post’s metadata in shortcode.php?
- Best way to create a search for custom post type by custom field values
- Dynamic category name in query post
- Save Metabox Custom Field Value
- Echo custom post meta from options array
- Value of post meta dropdown is not showing in WordPress
- Incorrect ordering of custom post type based on time
- Meta box data not saving
- Get all metadata for a given custom post type