I have a child theme that uses the new custom Jetpack Portfolio Project publication type and I want to modify archive.php to display custom results.
I use: WordPress v3.9.2; Subject: “Child of the Point” , Jetpack is installed with custom content types enabled, and portfolio projects are selected in the settings. (No other plugins that implement portfolio functionality have been installed.)
According to the Code :
Template Files
In the same way, individual messages and their archives can be displayed using the single.php and archive.php template files, respectively:
- individual user-type messages will use single- {post_type} .php
- and their archives will use archive- {post_type} .php
- and if you don’t have this archive page with the post type, can you pass BLOG_URL? post_type = {post_type}
where {post_type} is the $ post_type argument to register_post_type ().
As far as I understand, if you create files with the names single-jetpack-portfolio.php and archive- jetpack-portfolio.php in a child theme, WordPress will automatically use these files instead of single.php and archive.php, respectively.
However, my child theme successfully calls single-jetpack-portfolio.php, but completely ignores archive-jetpack-portfolio.php, instead calling archive.php on the child.
I am stuck for a solution.
URL- "? Post_type = jetpack-portfolio" archive- jetpack-portfolio.php, URL-, ? WordPress , single- jetpack-portfolio.php? ?
:
- , ( "" )
- archive.php archive- jetpack-portfolio.php ( archive.php , archive.php)
- Jetpack ( - , - Wordpress, )
.