WordPressの新着記事を取得・表示するコード

  • WordPressの新着記事を取得・表示するコード

コンテンツデータ:get_wp_feed1.2.zip

WordPressの新着記事を取得しサイトに表示させるコードです。
コード内の設定から、取得する記事数、カテゴリを変更できます。

基本的にHTMLコードの編集が可能なサイトであれば利用可能ですが、アメブロなど、scriptタグの使用が禁止されているサービスでは使用できません。(JavaScript を使用します)

¥3,410

*Tax included.

*This item is a digital item which you download (2768 bytes)

I would like to be notified of restocking

Age verification

When it is restocked, we will notify you to the registered e-mail address.

Mail Address

Please allow the domains 「thebase.in」&「mihune-web.com」so that you can receive our e-mail

I would like to be notified of restocking

Notice of restocking has been accepted.

We've sent an e-mail to you.
If you cannot find the mail, please check your spam folder.
When receiving a notification, you may not be able to receive it due to reasons such as the mail server capacity being exceeded. Please confirm it.

Please allow the domains 「thebase.in」&「mihune-web.com」so that you can receive our e-mail

Report

WordPressの記事を取得して表示させる

この商品は、HTMLコードに貼り付けて使用するコードです。
投稿タイトル・アイキャッチ画像・投稿日を取得し表示します。(ul > li の形式で出力します。)

cssは必要最小限で設定しています。各自でお好みのデザインに修正してご利用ください(変更なしでも問題ありません)。

get_wp_feedの設定内容

コードの中で、下記の設定を変更できるようにしています。

・取得したい記事件数(初期値は5記事)
・カテゴリの絞り込みをする(初期値は絞り込みなし。複数カテゴリの指定も可)

表示例

↓は表示例です。 *「News」の見出しや、背景色はデモサイトの仕様です。get_wp_feedでは指定していません。

infomationdownfolderhomemessage