[Resolved] Displaying single Custom Post type

Home Forums Support Displaying single Custom Post type

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1094266
    Ashley

    Hi – iv’e looked through the support forum and I think I’m after something very simple I can’t resolve from the guidance provided there.

    I’m migrating my site to this theme – which btw, is fab!

    I’ve added an mu-plugin to register a custom post type – ‘portfolio’ (to support the custom post type from the previous site). All good!

    I use WP_Show_Posts to display the portfolio items as required via a shortcode. Still All good!

    However, when I want to view the single portfolio item – I’m having a challenge.

    I’ve copied over the single.php and content-single.php files to my child theme folder.
    Changed the name to single-portfolio.php and content-portfolio.php respectively.
    Changed the -get_tempalate_part to -get_template_part (‘content’, ‘portfolio’) in the single-portfolio.php file.

    However I’m getting a ‘page can’t be found’ result.

    look forward to any guidance.

    Thanks

    PS – can’t add a site to view as it’s a dev site – can provide details but can’t put IP in the URL field below.

    #1094277
    Ashley

    Please forgive my stupidity. Always the way! it was a permalinks issue.

    Feels free to keep / remove this!

    Thanks

    Ashley

    #1094404
    David
    Staff
    Customer Support

    Glad to hear you found the issue and the solution 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.