Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('genesis_entry_header',
- function(){
- if(!is_singular()){return;}//アーカイブにも対応させる場合は不要
- //リンク不要な場合
- //$category = get_the_category();
- //$category = $category[0]->name;
- //リンク付きの場合
- $category = do_shortcode('[post_categories before=""]');
- echo '<span class="categoryName">' .$category. '</span>';
- }, 9
- );
Add Comment
Please, Sign In to add comment