Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter calrou

    (@calrou)

    I could create content types, they appear well in the banner on the left in the back office, but how to create pages rather than posts ?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Are you looking for setting up a post type that behaves like pages where you can set parent/child relationships? If yes, then you’ll want to make sure the post type has “hierarchical” set to true. If that’s not quite what you mean, then I’m going to need more details to help figure out the best path for you to achieve what you’re hoping for.

    Thread Starter calrou

    (@calrou)

    Sorry for my broken English, I am French.

    I created a new content type that I called “Services”. The type of content appears well on the left column under “Comments”.

    When I add content to my type “Services”, considered a WordPress post (because it displays the date, author, comments). The page is as if I had gone through “Post” and “New”.

    I would like it to be rather a “Page”.

    I do not know if you understood my request,
    Regards,

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    It’s sounding like perhaps it’s a frontend template issue, now.

    The custom post type is going to use the archive.php file for it’s display of archives. I believe this is going to be true regardless of if it’s hierarchical or not.

    You can create its own template file for just the custom post type posts. I’d take a copy of page.php and rename it to archive-services.php, and then also again from page.php to single-service.php. That way the same template copy gets used for both cases. Not sure if you’re going to want the archive or not, and that should be able to be set to false if needed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘page and not post’ is closed to new replies.