• Resolved Fawzi

    (@fauzurrahman15)


    i am talking about this and this. are these two exactly replacing each other usage? i mean, if “book” post format will do the same as “book” page template?

Viewing 5 replies - 1 through 5 (of 5 total)
  • A page template is a file of PHP.
    A post format is an internal WP taxonomy.

    Thread Starter Fawzi

    (@fauzurrahman15)

    is the output different?

    That question doesn’t make sense.
    There is no “book” post format in the internal taxonomy.
    You could write a page template called “book”, and the user can assign it to a page.

    Typically, a “book” would be a custom post type, which you define in a plugin. How it is rendered depends on whether your plugin adds a filter for 'template_include' to use its own template, or if you put a template named for the post type in your child theme. See the Template Hierarchy for details.

    Thread Starter Fawzi

    (@fauzurrahman15)

    got it, thanks for explaining

    Thread Starter Fawzi

    (@fauzurrahman15)

    [wrong thread]

    • This reply was modified 3 years, 10 months ago by Fawzi.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘difference between page template and post format’ is closed to new replies.