• 解決済 cha-han

    (@cha-han)


    List category postsを使って、固定ページに特定のカテゴリーの記事を表示させています。
    [catlist name=○○○ numberposts=6 content=no thumbnail=yes]と指定して、記事本文は表示させず、記事タイトルとサムネイルを表示させています。HTMLには上にタイトル、その下にサムネイル画像、という順で出力されていますが、この順番を入れ替えるにはどのようにすれば可能でしょうか?よろしくお願いいたします。

2件の返信を表示中 - 1 - 2件目 (全2件中)
  • popup

    (@popup)

    List category postsプラグインにはテンプレートシステムがあって、リストごとに専用のテンプレートを指定できるようです。
     

    Template System
    Templates for the List Category Plugin are searched for in your WordPress theme’s folder. You should create a folder named list-category-posts under ‘wp-content/themes/your-theme-folder’. Template files are .php files.

    You can use the included template as an example to start. It’s in the plugin’s template folder under the name default.php. To use a template, use this code: [catlist id=1 template=templatename] If the template file were templatename.php.

     
    デフォルトで’list-category-posts/templates’内のdefault.phpで表示しているようです。
    このテンプレートを参考にして作成してはいかがでしょうか?

    トピック投稿者 cha-han

    (@cha-han)

    どうもありがとうございました!
    参考にしてみます。

2件の返信を表示中 - 1 - 2件目 (全2件中)

トピック「List category posts 記事タイトルとサムネイルの順番入れ替え」には新たに返信することはできません。