Changeset 1201473
- Timestamp:
- 07/18/2015 07:25:55 AM (11 years ago)
- Location:
- wp-custom-post-template/trunk
- Files:
-
- 3 edited
-
css/myStyle.css (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-custom-post-template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-custom-post-template/trunk/css/myStyle.css
r887259 r1201473 25 25 width: 260px; 26 26 } 27 .note_summry{font-style:italic; }27 .note_summry{font-style:italic; float: left;} 28 28 29 29 .msgText { -
wp-custom-post-template/trunk/readme.txt
r899168 r1201473 3 3 Tags: post template, custom template for post, wp custom post template, custom post type, custom template, post from template, posts, templates, custom post template, custom theme template, simple post templates, single post templates, template, theme template, wordpress post template, wp post template 4 4 Requires at least: 3.0 5 Tested up to: 3.95 Tested up to: 4.2 6 6 Donate link: 7 7 Stable tag: 2.1 … … 75 75 == Changelog == 76 76 77 = 1.1 - 2015-07-18 = 78 * Updated according to new wp version functions. 79 77 80 = 1.0 = 78 79 81 * A intial version. -
wp-custom-post-template/trunk/wp-custom-post-template.php
r887259 r1201473 83 83 <?php 84 84 function wp_get_post_custom_templates() { 85 $themes = get_themes(); 86 $theme = get_current_theme(); 85 if(function_exists('wp_get_themes')){ 86 $themes = wp_get_themes(); 87 }else{ 88 $themes = get_themes(); 89 } 90 $theme = get_option( 'template' ); 87 91 $templates = $themes[$theme]['Template Files']; 88 92 $post_templates = array(); … … 135 139 if ($post) { 136 140 $post_template = get_post_meta($post->ID,'_post_template',true); 141 137 142 if (!empty($post_template) && $post_template!='default') 138 143 $template = get_stylesheet_directory() . "/{$post_template}"; 139 144 } 145 140 146 return $template; 141 147 }
Note: See TracChangeset
for help on using the changeset viewer.