Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kaoru-fukusato/25d0aa55c4c7ca6a463529d613c22b59 to your computer and use it in GitHub Desktop.
Save kaoru-fukusato/25d0aa55c4c7ca6a463529d613c22b59 to your computer and use it in GitHub Desktop.
Advanced Random Posts Widgetが動作しない時の対処法
function shortcode_random_posts( $param ) {
return random_posts($param[0] , $param[1]); //0:カテゴリーID(0はカテゴリ指定なし) 1:表示記事数
}
add_shortcode('random_posts','shortcode_random_posts');
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