Warning: Attempt to read property "post_content" on null in /home/mascot0429/design-engineering.jp/public_html/wp-content/plugins/custom-css-js/custom-css-js.php on line 203
.custom-post-list ul {
list-style-type: none; /* デフォルトの丸いリストを消す */
padding: 0;
margin: 0;
}
.custom-post-list li {
padding: 10px 15px;
border-bottom: 1px solid #ddd;
transition: background 0.3s;
}
.custom-post-list li:hover {
background: #f9f9f9;
}
.custom-post-list li a {
text-decoration: none;
color: #333;
font-weight: 500;
}
.custom-post-list li a:hover {
color: #0073e6; /* ホバー時のリンク色 */
}
.custom-post-list li .excerpt {
display: block;
color: #666;
font-size: 0.9em;
margin-top: 5px;
}
テスト
テスト
-
‘posts_per_page’ => 5 // 表示件数
-
$the_query = new WP_Query($args);
-
if($the_query->have_posts()) :
-
while($the_query->have_posts()) : $the_query->the_post(); ?>
-