<?php
$args = array( 'category' => 7, 'post_type' => 'post' );
$postslist = get_posts( $args );
foreach ($postslist as $post) : setup_postdata($post);
?>
<h2><a href="https://wordpress.stackexchange.com/questions/17496/<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
<?php endforeach; ?>
just change the category id (number 7)
and change the post_type that was in the plugin
to learn more about post_type, see link
http://codex.wordpress.org/Custom_Post_Types
Related Posts:
- How to get post content by calling ajax?
- Get the ID of the latest post
- Get category id from post id of a custom post type
- Limit the post for differents custom post type in the same wp_query
- How to hook get_terms() to only show count of posts that have custom meta
- Loading post content in FancyBox
- How to show related posts by category or custom post type?
- Structuring a product catalogue in WordPress [closed]
- Query post types with multiple keys
- ascending order custom post type
- Get all posts WHERE custom_field is LIKE value
- Quickest way to get last or oldest post date – WP Query
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Pagination is not working on single-{slug}.php but works fine on page-{slug}.php
- How to get the post type from a category id?
- Getting posts under the custom post type ui category
- Display only one post each WEEK
- List children on child post
- How to query_post custom posts within default taxonomy?
- Show custom post type filtered by category
- Showing posts from different categories and from custom post type
- Get latest 3 posts from multiple CPT in one query
- Show a Category X’s custom post type on Category X archive page?
- Add custom post type settings to wordress default posts
- Problem with displaying posts in the CPT category
- Set a checkmark in a category based on a URL-parameter
- How to edit this code to get the categories in achieve page?
- Category with post type pagination returns 404
- Get the category from custom post type
- Custom Post Slug same as Parents Category Slug
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Limit the post for differents custom post type in the same wp_query
- How can I show 1 featured post in a styled element, and the next few below differently styled
- WP the_posts() on single-cars.php get category link
- Create new custom post and post category of same name
- Custom post types and ‘new WP_Query’
- How to Display Posts From Category Within a Custom Taxonomy?
- Showing custom post type categories in the menu
- Stores category posts in an array
- Restrict category access to specific users/groups. Author always has access
- Post Query not working
- Use post in multiple places on a page with multiple posts
- List all posts in taxonomy term
- 4 posts per page from single category
- Am I mixing up the concept of posts pages and categories?
- Display all Categories except ones with a specific parent
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Custom post type archive page filters
- Post category behave like a Post in back office menu
- Save data is post using php front end
- Create a post automatically if search result has zero results
- How to show posts of the same category on a page?
- minimize wp_query call to database
- How to manage a dynamic multi-level page hierearchy system?
- Custom Post By Category
- Use WP pagination functions on a custom page template
- Change Custom Post Type to Post + Category
- Query the title of the page to show posts with matching category in the loop
- update a posts of other custom post type
- Only show current category post
- How to set class to “current-page” on the currently viewed single post within a CPT
- How to get Last post Id of custom post type in wordpress
- Display 2nd category, only once, as sub-heading, in the loop
- Post Editor: display categories from current post type taxonomy only?
- Custom Post Type used for FAQs Accordion
- query_post causes the posts to be loaded twice on load more posts
- Display all post types together
- How can I list custom post by custom category?
- Query Posts From Multiple Post Types
- WP Build-In Post selector for CPT
- show only one category posts in admin
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- How to call a custom post with get_posts() instead of query_posts()?
- Custom-Taxonomy as categories: Remove “most-used” tab?
- Add filter to wp_list_categories and query what type of taxonomy-terms it use?
- List all custom post type posts from a given category?
- How to display recent / random posts by its category
- Loop on front-page.php
- Querying Term Posts in Loop
- Conditional Statement custom post type category
- will post_id ever change? Can I safely use post_id for custom queries?
- Custom Post Type Query for Sidebar Doesn’t Work on Front Page
- How to change the post type a theme shows by default?
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- How to Make infinite loop of post
- Modifying the default post from wordpress
- Add Extra Category Field to CPT Categories
- Query Custom Post Type based on text input
- Order posts by years
- Use WP_query to match post types based on custom field values
- Convert With Custom Post Type
- Group Custom Posts Types in a Relation field of ACF
- Custom category taxonomy – archive page not showing up
- How to create a discussion post when a custom post is created?
- archive.php can’t find categorized posts
- Custom Post Types and Posts are mixed
- Cannot exclude particular post from loop of custom post type
- Apply text based styling done for a single post in WPBakery to all posts / create a template out of it [closed]
- Render a loop in Timber (twig for WordPress)