smsaikat
Forum Replies Created
-
Ok, Thank you so much everyone. ??
I am developing this theme and already ‘has_archive’ => true, I want to display category archive for a specific post type in a specific archive-{post-type}.php page. For example, I have a cpt named ‘project’ and i have a category named ‘python-projects’. All python projects are in this category. When i am viewing this ‘python-projects’ category by using this link https://localhost/wordpress/category/python-projects/ all projects are displaying in archive.php , But i want to display this category archive in archive-project.php
Currently archive-project.php displaying default archive of cpt ‘project’, I want to display both category archive and default archive of cpt ‘project’ in archive-project.phpThank you for your reply, but I think you did not understand my question. I already created archive-project.php and archive-news.php . But when i am going to category archive of these custom post type it using archive.php template. I want to use archive-project.php for category archive of ‘project’ post type.
- This reply was modified 3 years, 9 months ago by smsaikat.
Thank you so much,, its working ??
Thank you for your reply, I know about Template Hierarchy’. But I want to show both blog index and custom post index in archive.php , Is it possible? Currently for blog index page wordpress searching home.php and then its checking index.php