###前提・実現したいこと
Wordpressのサイドバーの表示を修正したい
###発生している問題・エラーメッセージ
Wordpress Popular Postのプラグインを使って、サイドバーに人気記事を表示させています。その際なぜかタイトルの上に、不要な黒丸が表示されてしまいます。
###補足情報(言語/FW/ツール等のバージョンなど)
・WordpressのバージョンはWordPress 4.8.2
・Wordpress Popular Postのバージョンは 4.0.6
・Wordpress Popular Postの「HTML マークアップ設定」部分は以下のように記述。
・サイドバーには、Wordpress Popular Postのウィジェット以外に、sidebar.phpに以下を直接記述。
<!-- sidebar --> <div id="sidebar" class="clearfix"> <aside > <div class="sidebar"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <?php endif; ?> </div> </aside > <aside> <h3>最新記事</h3> <ul class="newpost"> <?php $posts = get_posts('numberposts=5'); //最新5件を表示 foreach($posts as $post): ?> <li> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <?php if (has_post_thumbnail()): $title = get_the_title(); the_post_thumbnail(array(100,75), array('alt' => $title)); else: //アイキャッチ画像がなかった場合の処理 ?> <img src="<?php bloginfo('template_url'); ?>/notimage-mini.png" alt="<?php the_title(); ?>" width="100" height="75" /> <?php endif; ?> <?php the_title(); ?></a> </li> <?php endforeach; ?> </ul> </aside> <aside > <h3>カテゴリー</h3> <ul class="categorys"> <?php wp_list_categories('show_count=1&title_li='); ?> </ul> </aside > <!-- /sidebar -->
回答1件
あなたの回答
tips
プレビュー