Title: Template settings
Last modified: August 20, 2016

---

# Template settings

 *  [SCO7TY](https://wordpress.org/support/users/sco7ty/)
 * (@sco7ty)
 * [14 years ago](https://wordpress.org/support/topic/template-settings/)
 * I have copied a template from my theme, basically copied page-blog template and
   called it page-blog2 and changed a few things.
 * The problem i have is that when i select the template the page template settings
   underneath diappear! I’m assuming i need to edit something somewhere to include
   the page-blog2 template so that i have the settings but i cannot find where,
 * Anyone know?

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years ago](https://wordpress.org/support/topic/template-settings/#post-2754836)
 * Review [creating custom page templates](http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates).
 *  Thread Starter [SCO7TY](https://wordpress.org/support/users/sco7ty/)
 * (@sco7ty)
 * [14 years ago](https://wordpress.org/support/topic/template-settings/#post-2754840)
 * that baffled me pretty quickly! Seems quite complicated…
 *  Thread Starter [SCO7TY](https://wordpress.org/support/users/sco7ty/)
 * (@sco7ty)
 * [14 years ago](https://wordpress.org/support/topic/template-settings/#post-2754843)
 * All i want to do is change the category of posts, is there a simple way to do
   that in the template file? If so where do i change it?
 *  Thread Starter [SCO7TY](https://wordpress.org/support/users/sco7ty/)
 * (@sco7ty)
 * [14 years ago](https://wordpress.org/support/topic/template-settings/#post-2754862)
 * Something here maybe?
 *     ```
       $blog_cats = isset( $et_ptemplate_settings['et_ptemplate_blogcats'] ) ? (array) $et_ptemplate_settings['et_ptemplate_blogcats'] : array();
       $et_ptemplate_blog_perpage = isset( $et_ptemplate_settings['et_ptemplate_blog_perpage'] ) ? (int) $et_ptemplate_settings['et_ptemplate_blog_perpage'] : 10;
       ?>
       ```
   
 *  Thread Starter [SCO7TY](https://wordpress.org/support/users/sco7ty/)
 * (@sco7ty)
 * [14 years ago](https://wordpress.org/support/topic/template-settings/#post-2754880)
 * This is the whole template, can someone please tell me where i can change the
   blog category
 * _[ Code moderated. For [more than 10 lines of code](http://codex.wordpress.org/Forum_Welcome#Posting_Code)
   please [pastebin.com](http://pastebin.com/) instead. ]_
 *  Thread Starter [SCO7TY](https://wordpress.org/support/users/sco7ty/)
 * (@sco7ty)
 * [14 years ago](https://wordpress.org/support/topic/template-settings/#post-2754985)
 * Read through the first link over and over and i cant do it! Is there really no
   one on here that cant help?
 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [14 years ago](https://wordpress.org/support/topic/template-settings/#post-2754986)
 * > I have copied a template from my theme, basically copied page-blog template
   > and called it page-blog2 and changed a few things.
 * Without knowing the before/after state of the template file, it will be nearly
   impossible to provide any specific support regarding changes that you’ve made.
 * > The problem i have is that when i select the template the page template settings
   > underneath diappear! I’m assuming i need to edit something somewhere to include
   > the page-blog2 template so that i have the settings but i cannot find where,
 * What “options”? What does the page template do? What did it do originally, and
   what do you want it to do differently that prompted you to change the code?
 *  Thread Starter [SCO7TY](https://wordpress.org/support/users/sco7ty/)
 * (@sco7ty)
 * [14 years ago](https://wordpress.org/support/topic/template-settings/#post-2754988)
 * Ok i’ll try and explain as best as i can.
 * The original template was just a blog template, i have template settings which
   allow me to choose which category of posts i want to show on that page.
 * The new template is an exact copy but then edited it a bit so that it would show
   an image at the top of the page for the title, that’s basically the only change.
   But on this new one when i select the template i dont get the settings, probably
   becuase it has to link to another file somwhere, i dont know!
 * I dont really need the settings but by default the blog lists all posts, i just
   want it to list a certain category. Is there somewhere in code i can edit to 
   change the category of posts?
 *  Thread Starter [SCO7TY](https://wordpress.org/support/users/sco7ty/)
 * (@sco7ty)
 * [14 years ago](https://wordpress.org/support/topic/template-settings/#post-2754989)
 * This is the original template – [http://pastebin.com/q2KPPf8h](http://pastebin.com/q2KPPf8h)
 * This is the template i modified – [http://pastebin.com/B1Riavmq](http://pastebin.com/B1Riavmq)
 * _[ Please do not bump, that’s [not permitted here](http://codex.wordpress.org/Forum_Welcome#No_Bumping).]_
 *  Thread Starter [SCO7TY](https://wordpress.org/support/users/sco7ty/)
 * (@sco7ty)
 * [14 years ago](https://wordpress.org/support/topic/template-settings/#post-2755004)
 * Can i put the following code in somewere to select blog category?
 *     ```
       <?php
       $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
       $args= array(
       	'category_name' => 'antiquarianism, championship', // Change these category SLUGS to suit your use.
       	'paged' => $paged
       ```
   

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Template settings’ is closed to new replies.

## Tags

 * [settings](https://wordpress.org/support/topic-tag/settings/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 3 participants
 * Last reply from: [SCO7TY](https://wordpress.org/support/users/sco7ty/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/template-settings/#post-2755004)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
