You can use get_posts to get a list of posts, and then the WP_Post member variables to get and display the data that you need
You van do something like this. You can refine it as you need
<?php
$args = array( 'posts_per_page' => -1);
$posts= get_posts( $args );
if ($posts) {
foreach ( $posts as $post ) {
setup_postdata($post);
echo '<p>' . $post->post_title . '(' . $post->ID . ')' . ' was posted on ' . $post->post_date . '</p>';
}
}
This will output
TEST POST SUB(312) was posted on 2014-05-29 15:47:26
Related Posts:
- How to create REST Based JSON API(how to modify the code below)?
- How to use “Add link” pop up for a WordPress widget
- Adding additional data to WP_Post object
- Passing a hardcoded page/post ID into `get_post`
- Use an attachment in multiple posts
- Query Post Preview Updates from the WP API?
- Every possible way to get data (posts) from WordPress
- WordPress REST API not returning all posts
- How can I get the media inside a post?
- How to disable WordPress blog folder
- Call Web Services on post first publish
- Change post-slug using wordpress API? Change permalink of a post using php / jquery?
- Creating a WordPress Post via REST API – HTML or Markdown?
- Get timestamp of latest post in C#
- Pull in posts using post meta for REST API
- exclude particular category in api
- Is update_post_meta used when save_post action hook is invoked?
- Get origin or context of a how a post got created and/or updated
- how to fetch posts from Api in chunks or parts?
- REST API Working for GET but not for POST?
- Problem with wp_insert_post()
- Surrogate ID for posts, is there an alternative field in the posts table?
- How to get a list of all posts and their categories?
- Server 500 error when updating post using block editor
- WordPress Rest API Post request from AMP
- Get the Current Page Number
- Including categories in search results
- How to add editor’s name to entry meta byline?
- Pretty URL with add_query_var
- Using $wpdb to query posts with meta value containing current post_id
- Download external images if post is publish
- Convert IPTC keywords to blog post tags
- Forcing oembeds to top of post
- Can I change a post to a page by changing it’s type?
- Publish posts only after the condition is met
- How can I display a specific user’s first published post?
- custom single.php not working
- Change existing label in the admin bar with something else
- Append a to every post to force additional page link (and static content)
- Limit function to specific post category
- How to show a full post, not just an excerpt
- Change Order of Admin Posts Depending on Meta
- How much of my site can I recover from public_html?
- How to get a list of all the years that have posts
- How do I use `posts_distinct` correctly?
- How to find what index page a post is on?
- Get posts by name and taxonomy term
- Admin Posts Table Column Fitlering is not working for Custom Post Type
- Get Meta Key Value While Saving Post
- Displaying Latest Posts on a Page
- How can i display gallery shortcode output under Post text
- Hiding Draft Post In Admin
- How to limit posts by category
- XML-code sent via the POST method to the URL (API) [closed]
- List category posts alphabetically on archive.php
- how to change the number of posts returned in a specific loop without making it global?
- Related posts by category not working right
- custom post template file not shown, instead all the time 404.php
- Display post x of y within category
- 2 dynamic sidebars registered, not showing up
- How to save meta checkbox WordPress
- Displaying post excerpt using wpdb query
- How to display Changing post link for 24 hours in x category
- Upload attachment from external site
- Related Posts: Changing Function For Posts Per Page
- WordPress query portfolio posts
- Rand post related question
- load more posts by category
- Import custom database into wp and keep the post id
- Retrieve a specific post’s featured image and show on a different page
- WordPress wp_editor to post and edit
- Remove all external links from posts
- Only the most recent post is showing on my category page (working on localhost, not live site)
- Blog Posts – Scroll to view more
- After updating to 5.9, when the posts page is loaded in the browser it uses wp-includes/template-canvas.php?
- Show only posts with titles/permalinks that do not contain certain words
- Manipulated offset and pagination, can’t display last post anymore
- Mysql update menu_order problem
- Change WordPress names duplicate titles (url)
- My posts page is missing the page title
- Blog Post slider not working
- WordPress template next_prev
- Remove All in One Seo from Posts for Contributors
- Add row after three columns
- Grab next post title in archive page
- How to store post rating system data post independent?
- Displaying different posts Via wp_list_categories()
- get_post_meta property of non object
- Which hooks are essential for post templates?
- First post in loop displays twice
- custom post type single page template not working
- WordPress posts [closed]
- How to redirect image attachment to its original post
- How can I make my blog private? [closed]
- How to list first (etc. 5) posts as new?
- Add author section on Author archive posts
- Change Pages to Post in Woocommerce without Plugin
- Implementing Soft Delete for Bulk Actions / Empty Trash
- Mismatch between posts count and actual list in admin posts page
- Plugin or code to send out email to admin when a post is created