Advanced Random Posts Widgetが動作しない時の対処法
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
function shortcode_random_posts( $param ) { | |
return random_posts($param[0] , $param[1]); //0:カテゴリーID(0はカテゴリ指定なし) 1:表示記事数 | |
} | |
add_shortcode('random_posts','shortcode_random_posts'); |
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
CSS | |
/***** サイドバー見出し *****/ | |
/* ul */ | |
.arpw-ul { | |
} | |
/* li */ | |
.arpw-li { | |
} | |
/* title */ | |
.arpw-title { | |
float: right; | |
clear: both; | |
overflow: auto; | |
padding: 4px; | |
margin: 0 15px 15px 0; | |
display: auto; | |
} | |
/* thumbnail */ | |
.arpw-thumbnail {} | |
/* date */ | |
.arpw-time {} | |
/* excerpt */ | |
.arpw-summary {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment