- This topic has 6 replies, 2 voices, and was last updated 6 years, 6 months ago by tikaram.
-
AuthorPosts
-
September 25, 2017 at 1:41 pm #123038infonetParticipant
Hi,
I need a “Portfolio with filter” template and it seems that it is not provided by Catch Box Pro.
Is someone has one ?
Where can I find it ?
Thanks in advance,
MarcSeptember 26, 2017 at 2:44 am #123068tikaramKeymaster@infonet : The Portfolio option is not available in Customizer. You can download and activate Essential Content Types plugin and use short code to display your Portfolio items.
Example shortcode:
[portfolio display_types="true" display_tags="false" display_content="false" columns="3" showposts="10" orderby="title"]
Note: Make sure that you have already added portfolio items. Let me know if you need further assistance.
Regards,
TikaramSeptember 26, 2017 at 9:25 am #123083infonetParticipantThanks Tikaram for your fast answer.
I added “Essential Content Types” and the results of shortcode are good.
But there is no widget to filter portfolios by type before display.
I will read plugin documentation but if you have experience on this, it is welcome 🙂October 9, 2017 at 1:42 pm #124026infonetParticipantHi,
it seems portfolios are treated as articles by “content-single.php” template.
How is it possible to dedicate a customized template (example : “content-single-portfolio.php”) to manage portfolios ?
Thanks for your help.
MarcOctober 10, 2017 at 7:08 am #124069tikaramKeymaster@infonet : First you will need to create
archive-portfolio.php
. Copy the content from archive.php file to archive-portfolio.php.Replace line 35 of archive-portfolio.php with
get_template_part( 'content', 'portfolio' );
Next, createcontent-portfolio.php
and copy the contents of content-sigle.php to content-portfolio.php.Let me know if this resolves your issue.
Regards,
TikaramOctober 11, 2017 at 12:01 pm #124145infonetParticipantHi Tikaram,
Thanks for your fast answer.
In fact, the exact portfolio type (when you use Essential Content Types plugin) is jetpack-portfolio.
This must be into account by those who follow to adapt your method.In my case, I used the following method :
1) Copy of content-single.php in child theme.2) As this template is used for jetpack-portfolio and archive types, I have customized it as follow :
<!– JETPACK-PORTFOLIOS PROCESSING –>
<?php if ( ‘jetpack-portfolio’ == get_post_type() ) : ?>
<article>
… processing …
</article>
<?php endif; ?><!– POSTS PROCESSING –>
<?php if ( ‘post’ == get_post_type() ) : ?>
<article>
… processing …
</article>
<?php endif; ?>Hope this help,
MarcOctober 12, 2017 at 6:00 am #124195 -
AuthorPosts
- The topic ‘Portfolio's page template’ is closed to new replies.