You need to add ‘posts_per_page’=>’-1′ to $args, so:
<?php
global $post;
$i=1;
$args = array(
'order' => 'ASC',
'orderby' => 'post_date',
'post_status' => 'publish',
'post_type' => 'pacificheritage',
'posts_per_page'=>'-1'
);
?>
<?php if (have_posts()):?>
<?php
$list_of_posts = new WP_Query($args);
while ($list_of_posts->have_posts()):$list_of_posts->the_post();
$meta = get_post_meta( get_the_ID(), '');
?>
<?php echo $post->ID; ?>
<?php the_title(); ?><br/>
<?php
endwhile;
wp_reset_query();
endif;
?>
Related Posts:
- get all posts from a custom post type
- Set post date before 1970
- Single loop for wp_query and wp_user_query
- Custom taxonomy not showing up when adding a new custom post type
- Including Custom Post Types in “Recent Posts” Widget
- query multiple taxonomies
- wp_set_object_terms() is not replacing term, but creating a new one
- Custom Posttype Inheritance (and url structure)
- How can i link post_row_actions() with a custom action function
- Exclude custom function content from certain pages
- custom post type taxonomies UI radiobuttons not checkboxes
- Permalinks using event date (year & month) instead of publication date
- How do I write this SQL statement for Posts written in last 24 hours?
- Before Delete Post
- Lists Posts from CPT that match the Title of the Page
- Why do I lose the content of meta boxes when I leave the page?
- How to call custom single post?
- Duplicate Custom Header Functionality into the post edit screen
- Returning a list of custom post types excluding those without a specific meta_value
- query private custom post type
- Create a wordpress test-system as a clone from productive system
- Pagination for Custom Taxonomy Page [duplicate]
- Custom Post Type archive loop separated by term, in specific term order
- How to query custom post type with 3 custom taxonomies linked to it
- Paging doesn’t work?
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Custom post type content using custom fields without template
- Hide post navigation if current post is in a category with only one post
- Plugin – Combine Meta Box Input Fields into single saveble record
- How to handle a CSV with 65,000+ rows and make it searchable?
- Remove CPT name from permalink but add %category% instead
- Get Posts by multiple custom fields is not working
- I want to change the word “Tags” in WordPress to something else, but how?
- Set a checkmark in a category based on a URL-parameter
- How to query WordPress posts bycustom field with a max characters’ length
- Set post terms for multiple posts
- meta box on custom post type
- Categories filtering in new post
- “Post name” permalink returns home page for custom posts
- custom post type search by reference id
- how to check if custom post title exists or not?
- Print current post category during WP_Query
- Pagination custom post type not working with rewrite slug
- Pagination Not Working for Custom Taxonomy with Custom Query – 404 Error
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- ACF repeater field usage
- Loop through posts of only 2 statuses
- Batch Extract Date from post title and put into ACF custom field
- custom query with custom post type and category slug
- Display custom post type for specific user
- WordPress as a backend for external service? [closed]
- Post query missing an elseif statement
- How to limit what Editors see in the admin?
- Update custom post type title
- Custom Post Type Archive Not Showing Posts
- Using a Single Custom Post Type Template for Multiple CPTs
- How to prevent meta data from being edited in a post?
- display custom post on separate page
- Post type Echo code is repeating on homepage
- Displaying custom taxonomy menu in custom post type archive
- Sort by post word count in admin area
- How to display magic field’s custom write panel in wordpress theme?
- Admin slow on Postlist (over 30k Posts in Database)
- How can i show ACF in post excerpts
- Custom post type category link redirecting to 404 page
- Is it possible to hide nav menu items only when they are page titles (on specific templates) but not on the dashboard?
- Archive page URL for custom taxonomy and post type
- Post category behave like a Post in back office menu
- My custom post type not show category
- Save data is post using php front end
- How to output custom post type title on custom page with category next to it?
- Disable Sidebar on certain pages
- Add WordPress users to a custom post type
- Add new custom post type screen (admin area) results into 404
- Custom Post Type Pagination – not displaying posts
- Posts show up under “published” but not “all”
- Values show up in custom home page but not in custom post pages
- Permanent Custom Post Type
- How save custom meta type posts multicheck grouped by taxonomy (with CMB2) [closed]
- Single Page of Custom Post Type Not Showing the Content Of post
- Organising custom taxonomies and custom post types
- “Trash”, “Draft” and count not showing for custom post type in admin panel
- Change wordpress url permalink structure to show authors posts
- Multiple loops for custom post type to spread data across rows
- Generate slug and meta data if meta field is empty
- Parent to another Custom Post Type – Template files not being recognized
- Redirect Custom Post Type after user submits update
- Taxonomy and Rewrite Structure
- Pagination for a Custom Taxonomy
- Trying to create hierarchy between 3-4 custom post types
- How do I sort post listing by child post count?
- 404 for children in hierarchical custom post type
- How to rewrite CPT-Permalinks the correct way (incorporating meta-box-data)?
- Searching for a single custom post type, buddypress
- Checking for published posts in a certain post type
- Problem retrieving custom field for a custom post type
- Only One Post of Custom Post Type Appearing on Template Page
- Admin panel search doesn’t work for a specific custom post type
- How to rewrite custom slugs that follow my rules
- Problem with shortcode