The loops itself is working. I guess you have trouble to output this content on some page template. There are many ways how to show output of this loop on the homepage.
1.You can create home.php
file, put there your code and in theme settings select which page should output your custom post type.
2.You can create page template according to the documentation, put there your code, create some page in wordpress admin and on the right side in editor menu choose your newly created template.
Related Posts:
- What’s the difference between same wp functions get_posts(); functions in different form?
- Query & Order posts by custom fields
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Redirect to another page using contact form 7? [closed]
- Front end create custom post types
- How to get the custom post data using post id in WordPress?
- programmatically generated custom post type is created more than once
- cpt not display inside nav menu
- How to use posts as tabs in a custom page?
- Custom Post Type has wrong label and is not found when called by a loop
- Having issue on Loading Meta Data From CSV to CPT
- Loop carousel slider in wordpress
- How to manage wordpress knowledge base/wiki/posts collections
- How to make in WordPress admin panel sortable column for the custom field, that count the number of page impressions?
- Remove parent from custom post type
- Page as a child of a Custom Post Type
- Display custom field of specific post where post title matches variable
- Conditional to modify query results
- Loop through posts of a custom-post-type (event) and create .ics (iCal) file?
- Generate Shortcodes by Taxonomy
- Output custom post shortcode. Help spot the error.
- How to count custom post types with conditional operators
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- Why is archive.php used for my page
- WP_Query is printing out only one post when posts_per_page is set to multiple
- WP Query to displaying date and posts for that date?
- How to add extra input fields to CPT’s comment form?
- GravityForm: Populate Dropdown with custom post type [closed]
- Return array of categories to php function for current post
- Link users to a custom post type
- Create a random unique 6 digit number as custom field for custom post type
- How to output wordpress custom tags separated by comma?
- Loading all files within a directory
- Blog page showing same content as homepage
- Custom Post Type Taxonomies -Posts not showing in Category or Tag pages
- Using several custom fields as custom post title
- Custom Post Type without an archive page
- Get rewrite slug of custom post type in template
- Show Different Header on a Specific Post ID
- Get Post Primary Category
- Weird problem happening with custom taxonmy when creating/updating posts
- ACF simple text field value not showing
- A good strategy to print custom posts (offer) that are checked inside the metabox of a post?
- Admin notice not displaying
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- Made Custom Post Types, but single.php not working
- Can’t get order_by meta_value_num to work properly
- Is it possible to place custom post type files inside a folder in theme directory?
- Create custom post type on successful woocommerce order [closed]
- Displaying a custom post types custom taxonomy value?
- Adding custom tables to WordPress
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- Very Slow Page – How to Optimize # of Queries?
- Dynamic page outside WordPress
- Using wordpress template tags within an array
- How to display Custom Post Type Post based on Tag with Shortcode Parameter?
- Getting the URL of the parent page
- Custom query to filter posts that have current post as a taxonomy [closed]
- Custom post type permalink returns bad url
- Return the thumbnail meta data for getter and setter
- How to display selected taxonomies by their parent
- Custom Field Order by Last Name and First Name
- Pagination for custom php code
- get_posts of Custom Post Type AND Custom Taxonomy
- Changing number of posts per page on CPT-archive.php, have tried 20-30 code chunks so far
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- Custom Post Type Loop throws 500 error when used in widget
- how to check if custom post type column already exists?
- Get posts from a custom post type by child categories of a parent category
- Received nothing after executing AJAX post function
- How to make sure content doesn’t display if selection is empty
- What template files do I need to customise custom-category-term-links rather than fall back on archive.php?
- Custom Post-Type not in admin menu
- get the custom post type title/name
- Page vs Custom Post Types Differences/Issues
- If post has custom field then display css-class
- Push metadata in array
- How to customize a permalink (URL) structure?
- Troubles with saving metabox
- CPT + CMB2: data not displaying for only first post in loop
- How to make a field appear only if a post meta field has a defined value?
- Replace text in post from cvs
- Get parent categories of custom post type
- Can I list a custom post type within another custom post type in the admin area?
- Get custom post type list for every category shortcode
- How do i calculate the total of values of custom fields in custom post types?
- Get term name and term parent into custom post type permalink
- I would like to have different styles for my posts based on the content of each post
- Checking if Post Title is Unique as Loop Criteria
- Allow non-logged in users to see a future post after clicking on a list of future posts
- Help need making decision. Ads rotating site on wordpress
- Custom post type – get_day_link()
- Set URL link to featured image of custom post type
- custom taxonamy and post type
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- Custom Tag Description unable to display just below and outside of the Loop
- AJAX load more for different custom post type loops
- WP_Query to select custom post type with Advanced Custom Fields (ACF) date
- On update or create post redirect to current post position in list