WordPress.org

Ready to get started?Download WordPress

Forums

Single-Portfolio page (5 posts)

  1. LucasMorato
    Member
    Posted 1 year ago #

    Hi all,

    I created a portfolio page to show my works for my theme Everything is ok on my portfolio page, but when I click on an link to go to the portfolio object page, it uses the template's single.php page.

    I would like it to use the template page I created "single-portfolio.php".
    How do I do this?

  2. Doodlebee
    Member
    Posted 1 year ago #

    Single-portfolio.php is for custom post types. Are your portfolio items CPT's or regular categorized posts?

    This will tell you how to name them.

  3. LucasMorato
    Member
    Posted 1 year ago #

    What is cpt's? I think is categorized.

  4. Doodlebee
    Member
    Posted 1 year ago #

    Custom Post Types.

    If it's just a category, then you're using the wrong template file. Look at that link I posted before - it'll tell you how to name your files.

  5. LucasMorato
    Member
    Posted 1 year ago #

    Thanks doodle! I did it!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.