I want to get only 4 custom post type on homepage

Hey,

I’m new on frontity, just joined the community and making custom theme in it.

I need to get 4 custom post types on the homepage. I’m also fetching all custom post type on detail page.

Hey @muzzamilijaz . Welcome the the community.
I am not sure exactly what your question is but I would recommend that you look at the following resources:

If you have some specific questions, just post them here and I will answer them when I have the time.

To display only specific custom post types on your homepage in WordPress, you’ll need to customize the query that retrieves and displays the posts cash frenzy gift code. You can achieve this by modifying your theme’s template files or by using a plugin that allows you to control the posts displayed on your homepage. Here’s how you can do it using custom code: