Giter Club home page Giter Club logo

auto-series's Introduction

Automatic Series Organizer

連載記事のページネーションと連載記事一覧のウィジェットを自動的に構成するWordPressプラグインです。

利用方法

series_idというカスタムフィールドに連載名を記入します。

カスタムフィールド

表示例

同じ連載名の記事だけをまとめたページネーションが表示されます。

ページネーション

さらに、連載記事一覧のウィジェットも表示することができます。

ウィジェット

インストール方法

ZIPファイルをダウンロードし、解凍してできたauto-seriesフォルダをWordPressインストール先のwp-content/pluginsの中にコピーします。 WordPressのプラグイン管理ページにAutomatic Series Organizerプラグインが登録されますので「有効化」します。 さらに、テーマを編集してページネーションを出力したい箇所でseries_pagination()関数を呼び出します。 通常は、フッタの直前だと思います。 Twenty Twelveを使用しているなら、content.phpの

<footer class="entry-meta">

の前の行に、

<?php if ( is_single() ) : series_pagination(); endif; ?>

と記述します。 is_single()による判定は、カテゴリー別アーカイブやタグ別アーカイブなどでページネーションを出力させないためです。

ウィジェットは、ダッシュボードのウィジェット管理画面で任意のウィジェットエリアに追加します。

ウィジェット管理

サイトのデザインに合わせてCSSは適宜編集してご利用下さい。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.