Using a page template I inserted this code:
<?php
$args = array( 'post_type' => 'productions', 'posts_per_page' => 10 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
the_title();
echo '<div class="entry-content">';
the_content();
echo '</div>';
endwhile;
?>
Works like a charm. Now I just need to customise the loop so it looks pretty!
Related Posts:
- Style custom columns in admin panels (especially to adjust column cell widths)
- Counting the number of posts (custom post type) Query problems
- Why are comments and trackbacks still getting through for custom post types?
- Display a query with multiple post types and same relationship on a single page
- How to check if a WP_Query has data
- Why won’t my metabox data save?
- Defining capabilities for custom post type
- Templates for Custom Post Types and Custom Taxonomies
- Why get_next_post_link() or get_previous_post_link() doesn’t return the required links?
- Add metabox with media uploader in a custom post type [duplicate]
- How to set a custom post type post as static front page?
- Add links to post categories and taxonomies in wysiwyg link modal?
- Retrieving 3 latest post from each of 5 different custom post types
- How to save contact form 7 data in Custom Post Types (CPT) [closed]
- How to solve suspected memory issue in custom WordPress loop?
- Rewrite on custom post type permalink not working?
- Wp-query causing problems with the_content();
- Custom Taxonomy Breadcrumb Navigation
- Remove “-2” from a Toolset Types URL with the same post name
- Problems excluding a custom post-type from the loop
- Get permalink and title by post name?
- Ordering Custom Post Types with WP_Query
- get custom post type categories
- Custom query variable – get wordpress to redirect to nice permalink url
- Custom Post Type and Taxonomy combination
- How to create an array for a CPT post ID to use in an IF/WHILE statement
- How to filter search results by post type?
- Can’t unregister parent theme’s CPT from my child theme
- Unable to show meta box data in frontend
- Get Post Primary Category
- How to check the terms in single custom post type template
- Custom Post type with ACF in REST API, how do I get those values?
- Loop through Custom Post Type, and then show children within each iteration
- How to only show posts assigned to current user, only in certain post types
- Parent and Child relation for custom post types
- Posts from all the categories are being displayed instead of particular category
- search also in taxonomy, tags and custom fields
- forming WP_Query for posts of all post types but from specific categories
- Custom Post Types, URL rewrite on multiple CPTs
- Bulk Update Custom Fields for Custom Post Types
- Best way to style first post differently?
- Why is my site using index.php instead of archive?
- Displaying All Posts of a Custom Post Type in WordPress Multisite Backend
- New checkbox in custom post type widget isn’t saving data
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- CPT Parent as a page and CPT Child as a posts
- Custom Post Type – Duplicate Page Slugs
- how to show a category from a CPT?
- Refine custom posts by author
- WordPress Loop if/else
- Custom post type pagination 404
- Meta Data for Custom Post Type not saving
- List custom posts
- Serial Number Delivery System Using WordPress
- Get Post Terms of Current Post (selected taxonomy term) – How to get only the taxonomy value and not “Array ( [0] => taxonomy term )” in the frontend?
- WP Query ‘posts_per_page’
- Associate page w/ specific single post template?
- Add an Outside Wrapper to my Header and Make it Full Width
- Category Icon on custom post type
- Allow front end users to add data to a custom post type
- Displaying custom post types as a gallery
- Which escaping function should be use on register_post_type label?
- How to filter a custom post type by custom taxonomy without 404
- Entity to store contact form entries?
- not showing custom type meta box
- Get child categories of custom taxonomy category?
- Pagination of custom post type leads to 404 error
- Check category_name or taxonomy slug for a Custom Post Type?
- Post Type => Any conundrum
- Import External XML
- Display custom post counts for author , not default posts
- How can I add in post’s the text “No content”
- Link custom post type to parent page and show in slug / breadcrumb
- Difference between a default post type and a custom post type?
- How do i display all categories of a custom post type and have respective page for them?
- Custom Post Type Capabilities Singular/Plural
- Multiple useres editing specified content
- fusion builder missing from custom post editor
- Insert custom taxonomy into category query
- 404 error next-page [2] PageNavi custom type taxonomy
- single-{post-type}.php is not working in wordpress
- How to get post meta for custom post type and taxonomy
- how to display notifications in the wordpress menu when a new post is published
- Editor role isn’t seeing specific post type posts with only post_type parameter
- How to display category wise posts on seprarate template
- Get Non-Paginated Index of Post in Paginated Query
- How to stop wp_query searching pages as well as the specified CPT
- Display 2nd category, only once, as sub-heading, in the loop
- wp_list_categories() with attachment post types
- Return only custom post types for the page, not all
- Custom template support for custom post type?
- Using one custom taxonomy.php for two custom taxonomies?
- posting twice from an array?
- Custom post type with custom taxonomy
- custom post-type query just returns two posts
- Custom Post Type Template Based on Page Slug?
- Passing postid of Testimonial Custom Post in Shortcode Parameter
- How to get ‘Products’ on home page?
- body class according to number of published custom posts
- How do I target a links only in a custom post type and only in the p tag?