some Preview Sites of WP Premium Themes show Multiple Blog pages with different Templates as example.

a Full Width Blog Page a Medium Image Blog Page a Pinterest Style Blog Page.

Now how do they do that and have multiple "different" styled blog pages on one site?

Thanks, Allan


Check out the Codex page about creating your own page templates.

The files defining each Page Template are found in your Themes directory under /wp-content. To create a new Custom Page Template for a Page you must create a file using a plain text editor (e.g Notepad or TextWrangler).

Basically, create a php file, and put the following code in it:

Template Name: Snarfer

The above code is required and defines the snarfer.php file as the "Snarfer" Template. "Snarfer" may be replaced with most any text to change the name of the Page Template. The Template Name will appear in the WordPress Theme Editor for editing. For more information on Theme naming conventions see reserved Theme filenames for file names you should not use.

By your request

A tutorial for adding fields to an existing options page.

Hope it will get you trough.

  • Well I know how to create different page layouts, I mean having different templates for the "POSTS" Page. I only can define one Posts Page in Settings > Reading. – Allan Jan 23 '13 at 13:57
  • That can be achieved by register_setting(), This allows you to add settings in existing option pages. – Mike Madern Jan 23 '13 at 14:03
  • Or by add_settings_field(), more information about this in the Settings_API. – Mike Madern Jan 23 '13 at 14:05
  • Mh, could you describe or have a link to a tutorial? – Allan Jan 23 '13 at 14:24
  • I added a link to a tutorial in my answer. Hope it will help you. – Mike Madern Jan 23 '13 at 14:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.