Okay
  Public Ticket #1737536
How to create two different portfolios
Closed

Comments

  • Irrsen started the conversation

    Hello, thank you for the theme.


    I wonder, is it possible to create two different portfolios with different categories?

  •  295
    Paul replied

    Hello!

    Unfortunately, there is no option for that. The theme has only a single template for the portfolio. You would need to manually customize the theme to add more templates for another set of the portfolio. I am sorry about that.

    Regards,
    Paul

  • Irrsen replied

    Thank you Paul!

    Can you you give me some pieces of advice how to add more templates for another set of the portfolio? Just in two words)

  •  295
    Paul replied

    I am afraid it would require a lot of coding in this case. I would recommend checking out all the code in these related files to see how it works:

    • template-all-works.php (This is the main template file.)
    • /template-parts/portfolio-listing.php (This is the file that creates a custom query for loading portfolio categories and items.)
    • /template-parts/portfolio-listing-loop.php
    • /template-parts/portfolio-category-menu.php

    Just in case you are not familiar with coding, I would strongly suggest finding a freelancer to fully help you out about the customization.

    ----

    There is also a workaround I can think of (I am not sure if it would suit you or not). Instead of using two separate template files, you can use the site menu for each set of your portfolio instead. The sample structure might be like so:

    Home
    Portfolio 1
     - Category 1.1
     - Category 1.2
     - Category 1.3
    Portfolio 2
     - Category 2.1
     - Category 2.2
    Blog
    Contact

    You can add portfolio categories to the site menu on the "Appearance > Menus" page.

    But if you used this method, you might want to hide the portfolio category menu on the portfolio template. (You can do that by using the option in this section: "Appearance > Customize > Portfolio Styles".)

    I hope it helps.