Getting Portfolio with Slugs

This topic is: resolved

This topic contains 3 replies, has 3 voices, and was last updated by Brotskybee brotskybee 5 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1764
    Theoryginal
    theoryginal
    Member
    Post count: 1

    Hi,
    I would like to display 4 different portfolio slugs in 4 different pages.
    Here is the structure;

    Portfolio-Category A
    Portfolio-Category B
    Portfolio-Category C
    Portfolio-Category D

    Well, I know I can get the slugs by /../portfolio_category/slug-name

    However; I need to display portfolio categories in a page, not like above.

    /../slug-name(.html) should be in a page template-portfolio-4c-sorted-full-width.

    Therefore; I dublicated template-portfolio-4c-sorted-full-width with different names (same with the slugs of portfolio categories) and I have 4 custom page templates.

    I have no idea how to get different portfolio categories in different pages.

    Is there any way that I can get portfolio categories by slugs? (there is one for page categories “get_category_by_slug”. Anything for portfolio categories?)

    #1772
    Livemesh
    livemesh
    Keymaster
    Post count: 1011

    Hi – no need to create new page templates. You can use the regular page template with the shortcodes being mentioned in the posts below –

    https://www.livemeshthemes.com/support/forums/topic/selected-post-snippets/

    and

    https://www.livemeshthemes.com/support/forums/topic/portfolio-2/

    #1781
    Theoryginal
    theoryginal
    Member
    Post count: 1

    Thanks a lot!
    That is exactly what I am looking for.

    #2284
    Brotskybee
    brotskybee
    Member
    Post count: 24

    Ahhhh…thanks for the links! They solved my exact same issue.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Getting Portfolio with Slugs’ is closed to new replies.