Try this as your query:
$args = array(
'post_type' => 'press',
'posts_per_page' => 20
);
$wp_query = new WP_Query( $args );
while // etc.
Also you could try:
<div class="press-title"><?php echo get_the_title(); ?> </div>
Related Posts:
- Replacing the title in admin list table
- Replacing the title in admin list table
- the_title filter returning wrong post type
- Custom post type title is set by other custom post type
- Display post content with respect to its title?
- Limit the Title Length on Custom Post Type Archive Page to a Set Number of Characters
- Random Custom Post Type Titles
- Can’t Get Parent and Child Categories of Custom Taxonomy to Display
- Is it possible to create 2 unique titles for an Events custom post type: Upcoming Events and Past Events?
- Display title of custom post type dynamically
- Custom Post Type title not populating
- Remove space when post title is blank
- Hook for post and page load
- Possible to hide Custom Post Type UI/Menu from specific User Roles?
- Custom post types filtered by taxonomy using REST API v2
- Multiple parameters in a custom post type url rewrite
- Pagination in plugin with custom post type
- Custom post type with tags
- Adding Custom Taxonomy to WordPress default Post type
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- Admin not showing all custom post type posts and views not working
- No posts found – Custom Post Type show_ui
- Custom-Posttype & Custom Taxonomy WP_Query
- Page template with different page and post content
- Custom post type url with category
- Redirect 404 page with ID in slug to associated page with same ID in slug
- Only keep the First and Last Revision of a post
- Action or Filter Hook for a Custom Importer
- Stuck in Order by more then one
- Set a CPT slug as a base name for all the taxonomies
- Admin Filter – Add Post Type Description on Post Type Page
- Custom taxonomy rewrite with query var returns %2F in URL
- Create 2 Post Types, one parent to another in Plugin
- Displaying custom-taxonomy-terms sorted by parent/child-hierarchy?
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- Tag page only display 10 posts
- Multiple single templates?
- Custom Post type & Taxonomy 404
- Setting Post Title via Meta Data returns Auto-draft
- Not sure why this template for custom post type posts isn’t displaying anything. What’s missing?
- Plugin or method of allowing user to rearrange custom post types with drag and drop?
- I want to know if i can add two different custom post types to my wordpress site
- Run shortcode in custom script in wp_head if post type is CPT ‘Jobs’
- Custom permalink not working and showing 404 page not error
- Query entries from custom post type in an ACF flexible content field
- Custom Post Type (CustomPress) [closed]
- Direct form to a custom page template
- How to create a template to show child terms of a MAIN taxonomy
- How to copy a custom field from the user’s CPT to the user’s normal posts
- How do I add new post formats to twenty fourteen theme?
- Problem On Retrieving Post Meta Data on Custom Column [closed]
- Shortcode is displaying the wrong post_title
- Enable comments for post when comments meta box removed
- Custom Post Type page template doesn’t show up
- CPT : Next or Previous term link when has not adjacent post
- Admin Posts Table Filter
- How to specify user ID for a CPT wp_insert_post when there’s no actual user (it’s programmatic)
- Added new role with custom capability. But cannot access the page
- Permalink for specific post type
- Problem in moving cpt’s from local website to live website
- custom post type single page not found after aotumatic publish By the author’s robot
- Query for a custom post taxonomy
- Update Cateogory Taxonomy Count for Attachment Post Type
- Multiple domains, Single database, 1 Parent/Master with all content, other domains/slaves with filtered content (based on “location” variable)
- Creating connections programmatically with common fields on CPT’s
- Customising the admin columns for a custom post type, but now most of the built in categories don’t display?
- How to get Last post Id of custom post type in wordpress
- Attach a custom post type archive to a static page
- Querying multiple taxonomies in URL leads to wrong taxonomy archive
- Custom post type child page 404
- Sort by Custom Post Type (Multiple Loop)
- WordPress Custom Permalink Structure with Custom Post Type and Taxonomies
- Make future posts visible to the public—not just within WP_Query
- Custom taxonomy archive page not routing?
- Display tags & categories seperatly
- Display a list of posts whose meta field values are equal to the ID of the post being viewed?
- Looking for advice how to approach building a WordPress plug-in
- Get all posts of any post type in a category from REST API
- Function to Compare CPT Post Custom Value with Default Posts CF Value
- How to automate the creation of advanced layout article/post
- Redirect drafted post of custom post type to URL?
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL
- Display code if title of the custom post matches title of other post
- Taxonomy listing issue – does not display how I would like
- Custom archive URL as a subfolder of the custom post type slug
- get_post_types() is returning null
- How to insert a post from a different post type after every nth post
- Sort CPT by taxonomy AND THEN by custom field
- Custom post type disappeared in wordpress when I transferred theme to Showit
- Title- Custom taxonomy by using get_term
- I want to show a list of posts under specified categories
- Complex Custom Loop with Includes
- Sorting by Title for Post Archive Categories for Custom Post Type
- Single custom post type page redirect to 404 page
- How can I show a field ID in Elementor with Request Parameter
- Custom post type single page fine for admin, 404 from front
- How can I incldue a “private” post type in a loop for public users?
- How to automatically compare date from custom post type with current date and change taxonomy based on a result?
- select categories by ids/display terms only selected
- How to exclude a certain CPT from a snippet for Dashboard box?