Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #123038
    infonet
    Participant

    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,
    Marc

    #123068
    tikaram
    Participant

    @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,
    Tikaram

    #123083
    infonet
    Participant

    Thanks 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 🙂

    #124026
    infonet
    Participant

    Hi,
    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.
    Marc

    #124069
    tikaram
    Participant

    @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, create content-portfolio.php and copy the contents of content-sigle.php to content-portfolio.php.

    Let me know if this resolves your issue.

    Regards,
    Tikaram

    #124145
    infonet
    Participant

    Hi 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,
    Marc

    #124195
    tikaram
    Participant

    @infonet : Glad to know that the issue has been solved. Might be helpful for someone looking for similar kind of solution.

    Regards,
    Tikaram

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Portfolio's page template’ is closed to new replies.