1

最近の投稿でマーキー コードを持っています。カテゴリ ベースで変更したいと思います。注目のカテゴリを選択するとします。このマーキー コードで、最近 10 の注目のカテゴリのポスト タイトル ショーを作成したいと考えています。

私の最近の郵便番号は以下に表示されます...

<marquee width="820px" style="font-size: 12pt; height:32px;padding-bottom: 10px;" behavior="scroll" direction="left" bgcolor="#DEE9FB" scrollamount="2" scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()"><?php $latest = get_posts('numberposts='.$bnews_options["BnEnumber"].'&offset='.$bnews_options["‌​BnPostSkip"].'&cat='.$bnews_options["BnCatID"]); foreach( $latest as $post ): ?
&nbsp;&nbsp;<img src="http://hostshine.net/wp-content/uploads/2013/02/dot.png">&nbsp;&nbsp;</font><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><?php endforeach; ?></marquee>

どのコードを変更できますか?それはカテゴリベースですか?

4

1 に答える 1

0

このコードを使用できます。ただし、マーキーコードの使用はサポートしていないことを覚えておいてください..

<marquee width="820px" style="font-size: 12pt; height:32px;padding-bottom: 10px;" behavior="scroll" direction="left" bgcolor="#DEE9FB" scrollamount="2" scrolldelay="60" onmouseover="this.stop()" onmouseout="this.start()"><?php query_posts('category_name=wordpress&showposts=5'); ?><?php while (have_posts()) : the_post(); ?><li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li><?php endwhile; ?></marquee>
于 2013-06-13T17:39:18.700 に答える