This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(SINGLE_PATH, TEMPLATEPATH . '/single'); | |
add_filter('single_template', 'my_single_template'); | |
function my_single_template($single) { | |
global $wp_query, $post; | |
foreach((array)get_the_category() as $cat) : | |
if(file_exists(SINGLE_PATH . '/single-cat-' . $cat->slug . '.php')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define(SINGLE_PATH, TEMPLATEPATH . '/single'); | |
add_filter('single_template', 'my_single_author_template'); | |
function my_single_author_template($single) { | |
global $wp_query, $post; $curauth = get_userdata($wp_query->post->post_author); | |
if(file_exists(SINGLE_PATH . '/single-author-' . $curauth->user_nicename . '.php')) return SINGLE_PATH . '/single-author-' . $curauth->user_nicename . '.php'; elseif(file_exists(SINGLE_PATH . '/single-author-' . $curauth->ID . '.php')) return SINGLE_PATH . '/single-author-' . $curauth->ID . '.php'; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* * Template Name: Featured Article | |
* Template Post Type: post, page, product | |
*/ | |
get_header(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Link Text](http://example.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="http://example.com/">Link Text</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== Screenshots == | |
1. This is the description for the first screenshot | |
2. This is the description for the second screenshot | |
3. This is the description for the third screenshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/plugin-directory/assets/screenshot-1.png | |
/plugin-directory/assets/screenshot-2.jpg | |
/plugin-directory/assets/screenshot-3.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[http://example.com/images/screenshot.png Description for the first screenshot] | |
[http://example.com/images/another-one.png Description for the second screenshot] | |
[http://example.com/images/and-another.jpg Description for the third screenshot] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svn propset svn:mime-type image/gif *.gif | |
svn propset svn:mime-type image/jpeg *.jpg | |
svn propset svn:mime-type image/png *.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svn propset svn:mime-type image/jpeg screenshot-1.jpg | |
svn propset svn:mime-type image/jpeg screenshot-2.jpg | |
svn propset svn:mime-type image/jpeg screenshot-3.jpg |
OlderNewer