wordpress - how can i make a specific page tempate load for specific posts or permalinks -


hi im trying figure out how make post load different page template when clicked on example have articles page on website test.smartphonesource.org , when click on permalink article titles in generated article posts leads me products single.php page , attempts load article in page format problem single.php page designed ecommerce products not article reading how can target article posts or there permalinks make them load different page template when clicked on? need advice wordpress jedi or half way decent patta-won lol =) cant finish website until find way resolve super appreciated thanks.

page templates can set use on page creating template file used instead of main template. in theme directory, create php file , call whatever like. then, make sure document starts with:

<?php      /*     template name: your_template_name     */ 

once have saved file, able see template dropdown in page "attributes" section of wp editor. there default, , your_template_name options. select template desire (your_template_name) , update page. page take on format of new template. gives flexibility future use.

there other options can find @ http://codex.wordpress.org/page_templates

if have other custom post types you've created, can create specific templates them creating file called single-{post-type-name}.php


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -