Skip to main content
Fixed code formatting and URL.
Source Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459

Archives.phparchives.php is a template file that WordPress will use by default (if it exists). If you want to create a custom page template you need to create a new template file in your theme. You can read all about it herein the Codex, but I'll provide an example below. Put this at the top of your new file:

`

`

<?php
/*
Template Name: Your page template name goes here.
*/
?>

...then Then follow it with the custom code you need to display your data.

Then, when creating a new page that you would like to use the above template, you will see a drop-down list on the right that lists all the names of page templates you have in your theme.

Archives.php is a template file that WordPress will use by default (if it exists). If you want to create a custom page template you need to create a new template file in your theme. You can read all about it here, but I'll provide an example below. Put this at the top of your new file:

`

`

...then follow it with the custom code you need to display your data.

Then, when creating a new page that you would like to use the above template, you will see a drop-down list on the right that lists all the names of page templates you have in your theme.

archives.php is a template file that WordPress will use by default (if it exists). If you want to create a custom page template you need to create a new template file in your theme. You can read all about it in the Codex, but I'll provide an example below. Put this at the top of your new file:

<?php
/*
Template Name: Your page template name goes here.
*/
?>

Then follow it with the custom code you need to display your data.

Then, when creating a new page that you would like to use the above template, you will see a drop-down list on the right that lists all the names of page templates you have in your theme.

Source Link
cmegown
  • 793
  • 4
  • 10

Archives.php is a template file that WordPress will use by default (if it exists). If you want to create a custom page template you need to create a new template file in your theme. You can read all about it here, but I'll provide an example below. Put this at the top of your new file:

`

`

...then follow it with the custom code you need to display your data.

Then, when creating a new page that you would like to use the above template, you will see a drop-down list on the right that lists all the names of page templates you have in your theme.