I am trying to create a custom gallery post type but

Hello,

I am trying to create a custom gallery post type but instead of behaving like a post, I'd like for it to behave like a page. Is this possible?
I keep getting the post layout when I publish with unwanted header and sidebars.

Thanks

  • Ivan Shulev
    • The Bug Hunter

    Hey Pablo ,

    I hope you are having a nice day so far!

    You can achieve custom looks for your post types by creating a single-{post_type}.php, copy the single.php in it and remove the unwanted header and sidebar. Now this may vary on the theme you are using. A custom approach might be needed.

    It will be easier for us to guide you if you share exactly which theme you are using and the custom post type name you are referring to.

    Check this link for reference - https://codex.wordpress.org/Post_Type_Templates

    Thank you for clarifying and I wish you an awesome day ahead!

    Ivan

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.