• Resolved digitallyjonas

    (@digitallyjonas)


    Hello,

    I am working on making a dictionary with Custom Post Type. I have made a custom post type: “Ordbog” / Dictionary. This is where I add new words.

    It works fine, but the layout of the word is not satisfying. I want the layout to be like a PAGE, not a POST. I don’t know how to do this. I have tried to change the capability type from post to page, but this doesn’t seem to be the solution.

    Hoping for help..

    Have a great day 🙂

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter digitallyjonas

    (@digitallyjonas)

    ADD

    Take this for an example: http://ny.digitally.dk/ordbog/open-source/

    What I want is to get rid of the blog page header and the author section in bottom. I think this is achievable by turning the post type into a page and not a post – but how do I do that?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    This is less about settings for CPTUI-based post types or “post”-like post type vs “page”-like post type, and much more about the templates/layouts being used from the template hierarchy with your active theme.

    It’s very likely using the “archive.php” template file in some places, and “single.php” for the individual posts in the post type. If you’re using a child theme, you’re already in a great place. If you’re not and can, also a good place to be in. Regardless, what I would do is duplicate the “page.php” template file and rename it to “single-ordbog.php” so that the single entries would use that template file. You may also want to duplicate “archive.php” to “archive-ordbog.php” as well, so that you can have dedicated templates for the archive view.

    For more information about the template hiearchy, check out this page:

    https://developer.wordpress.org/themes/basics/template-hierarchy/

    Hope this helps.

    Thread Starter digitallyjonas

    (@digitallyjonas)

    Thank you so much Michael. It works perfectly 🙂

    Thread Starter digitallyjonas

    (@digitallyjonas)

    Allmost.. It looks fine on the frontend, but now I can’t access it from the backend. When I tried to refresh it says that I don’t have permission, and it is now gone from the menu. What do I do?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If you were fiddling with the capability type field, I would make sure it’s set back to “post” and you should be up and running again.

    Thread Starter digitallyjonas

    (@digitallyjonas)

    Oh, that’s it. Thank you Michael.

    Have a great day 😀

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Page Capability Type’ is closed to new replies.