Linux 软件免费装
Banner图

Admin Post Navigation

开发者 coffee2code
更新时间 2018年4月18日 13:02
捐献地址: 去捐款
PHP版本: 4.7 及以上
WordPress版本: 4.9
版权: GPLv2 or later
版权网址: 版权信息

标签

post admin navigation edit post types coffee2code next previous

下载

1.0 1.1 1.1.1 1.5 1.6 1.6.1 1.7 1.7.1 1.7.2 1.8 1.9 1.9.1 1.9.2 2.1 2.0

详情介绍:

This plugin adds "← Previous" and "Next →" links to the "Edit Post" admin page if a previous and next post are present, respectively. The link titles (visible when hovering over the links) reveal the title of the previous/next post. The links link to the "Edit Post" admin page for the previous/next posts so that you may edit them. By default, a previous/next post is determined by the next lower/higher valid post based on the date the post was created and which is also a post the user can edit. Other post criteria such as post type (draft, pending, etc), publish date, post author, category, etc, are not taken into consideration when determining the previous or next post. Users can customize how post navigation ordering is handled via the "Screen Options" panel available at the top of every page when editing a post. A dropdown presents options to order navigation by: 'ID', 'menu_order', 'post_date', 'post_modified', 'post_name', and 'post_title'. Post navigation can further be customized via filters (see Filters section). NOTE: Be sure to save the post currently being edited (if you've made any changes) before navigating away to the previous/next post! Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

安装:

  1. Unzip admin-post-navigation.zip inside the /wp-content/plugins/ directory for your site (or install via the built-in WordPress plugin installer)
  2. Activate the plugin through the 'Plugins' admin menu in WordPress
  3. Optional: When editing a post type that supports admin navigation (which are all post types by default), use the "Screen Options" menu to customize how navigation is handled.
  4. Optional: See documentation for available programmatic customizations

屏幕截图:

  • A screenshot of the previous/next links adjacent to the 'Edit Post' admin page header when Javascript is enabled.
  • A screenshot of the previous/next links in their own 'Edit Post' admin page sidebar panel when Javascript is disabled for the admin user.

升级注意事项:

2.1 Recommended update: added screen option for users to customize post navigation order for each post type, fixed bug where navigation didn't appear for posts with apostrophe in title, updated unit test bootstrap file, noted compatibility is now WP 4.7-4.9+, and updated copyright date (2018) 2.0 Recommended update: added RTL support, moved CSS & JS into enqueueable files, enabled navigation for media files, adjustments to utilize language packs, minor unit test tweaks, noted compatibility through WP 4.4+, and updated copyright date 1.9.2 Bugfix: fix to display navigation links in WordPress 4.3; noted compatibility through WP 4.3+ 1.9.1 Minor bugfix: fix to more reliably ensure the navigation links appear in certain situations; fix incorrect example code for excluding post statuses; noted compatibility through WP 4.2+ 1.9 Feature update: fix to only apply navigation to first h2 on page; added filters to facilitate customizing link text; added unit tests; noted compatibility through WP 4.1+; added plugin icon 1.8 Minor update: hid screen options checkbox when JS is enabled since metabox is hidden; improved metabox spacing; noted compatibility through WP 3.8+ 1.7.2 Trivial update: noted compatibility through WP 3.5+ 1.7.1 Trivial update: noted compatibility through WP 3.4+; explicitly stated license 1.7 Recommended update: enhanced styling of navigation links; added support for localization; noted compatibility through WP 3.3+; and more 1.6.1 Trivial update: noted compatibility through WP 3.2+ 1.6 Feature update: added support for non-'post' post types; fixed so navigation only appears for posts of appropriate post status; implementation changes; renamed class; updated copyright date; other minor code changes. 1.5 Recommended update. Highlights: find prev/next post by ID rather than post_date, fix navigation logic, added numerous filters to allow for customizations, miscellaneous improvements, dropped pre-WP 2.8 compatibility, added verified WP 3.0 compatibility.

常见问题:

How do I change it so the previous/next links find the adjacent post according to post_date?

See the Filters section for the c2c_admin_post_navigation_orderby filter, which has just such an example.

Can I change the link text to something other than "← Previous" and/or "Next →"?

Yes. See the Filters section for the c2c_admin_post_navigation_prev_text and/or c2c_admin_post_navigation_next_text filters, which have just such examples. To change or amend the overall markup for the links, look into the c2c_admin_post_navigation_display filter.

更新日志:

2.1 (2017-12-26) 2.0 (2016-01-14) 1.9.2 (2015-08-19) 1.9.1 (2015-07-08) 1.9 (2015-03-14) 1.8 (2013-12-29) 1.7.2 1.7.1 1.7 1.6.1 1.6 1.5 1.1.1 1.1 1.0