该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

User Posts Per Page

描述

This plugin allows your website visitors to set the number of posts they see per page. It will insert a form at the top of your posts page in order to allow your website visitors to quickly set the number of posts they want to see per page.

Detailed Features

User Posts Per Page allows your website visitors to set the number of posts per page, and remembers that number everytime they reach your website.

  • Works with posts, pages and custom post types
  • Works on Category pages, tag pages, author pages, archive pages, and custom post type archive pages.
  • Number of posts per page remembered for logged in users
  • Cookie set for non-logged in users to remember settings
  • On network installs, network administrator is able to set the default number of posts per page across the whole network

Plugin Usage

  • Go to Appearance->Widgets and add your widget to any sidebar of any archive page
  • Alternatively, you can use the shortcode [user_posts_per_page] to insert this in your theme using
    the function echo do_shortcode('[user_posts_per_page]');

安装

  1. Install your plugin as usual through the plugin installer inside wordpress admin or via manual upload
  2. If this is a network install, go to Network Admin->User Posts Per Page and set default settings there
  3. Go to Settings->User Posts Per Page and define your website settings there.
  4. Go to appearance->widgets and enable it on your sidebar, or use the shortcode found on the settings page

常见问题

Do I need a network install for this to work?

No, it works on any website normally. However, if activated on a network installation, it adds some options that are specific to network websites.

My widget is not showing, why?

The widget only shows in the sidebar of your archive pages, e.g. is_archive() function is true
If you have no sidebar on your taxonomy pages, you will need to manually add the shortcode [user_posts_per_page] to your theme

评价

此插件暂无评价。

贡献者及开发者

「User Posts Per Page」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0

  • Initial Release