Pager Widget

ཞིབ་བརྗོད།

Description: Widget that provides “Parent | Previous | Next” buttons to navigate between pages at the same hierarchy level (and up to the parent page). You can modify the settings to choose the words you want to use. To enable, first activate the plugin, then add the widget to a sidebar in the Widgets settings page.

View or contribute to the plugin source on github: https://github.com/uhm-coe/pager-widget

གཏུབ་རེིས།

  • The Pager Widget added to the page bottom widget area.

སྒྲིག་འཇུག

  1. Upload pager-widget.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place the widget where you want it through the ‘Widgets’ menu in WordPress
  4. Adjust the settings, if necessary, after placing the widget in a widget area

གདེང་འཇོག

2024 ལོའི་ཟླ 7 ཚེས 22 ཉིན། 1 reply
I use this plugin for some years now: it’s impressively simple but equally useful – with the help of some added css for esthetics. I appreciate how useful it is for creating categorised pagination, so i’m very glad to see that you (developer) keep actualizing the source base. Big thanks for this! 🙏
2019 ལོའི་ཟླ 2 ཚེས 23 ཉིན།
The story mode on this plugin makes it almost do what I needed it to do, which was page through an entire section of content with a title level, chapter level, and page level. I just don’t like that in this mode my very top level page still has a back button, which I had to work around. But this is easy to do with custom CSS on that particular page: /* hides the previous button on the first page */ #linksPrevNext a:first-child{ display: none; } /* hides the next button on the last page */ #linksPrevNext a:last-child{ display: none; } Having this as a widget is nice because you can decide exactly where you want it to appear. I am using “widgets on pages”, to just include it on pages where I want it to show up. It would be nice if you could still have a parent button in story-mode, but then just specify where you want that link to go. I recommend this plugin anyone trying to simply add some previous and next navigation to pages on your site. This plugin works well.
གདེང་འཇོག 2 ཡོངས་སུ་ཀློག

བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།

“Pager Widget” is open source software. The following people have contributed to this plugin.

བྱས་རྗེས་འཇོག་མཁན།

དག་བཅོས་ཉིན་ཐོ།

1.8.3

  • Fix log warnings about undefined sortStoryModeAlphabetically.
  • Tested up to WordPress 6.2.2.

1.8.2

  • Don’t render widget on non-hierarchical post types.
  • Tested up to WordPress 5.8.1.
  • Apply coding standards via phpcs.xml.

1.8.1

  • Tested up to WordPress 5.4.2.
  • Fix deprecation notice about create_function() on PHP 7.2 or higher.
  • Fix PHP notice about isStoryMode when checkbox is toggled when saving widget.

1.8.0

  • Remove empty <h2 class=”widget-title”></h2> above widget.
  • Add page titles to anchor title attribute (so they show as tooltips). Props @UsuallyLogical for the suggestion!

1.7.5

  • Add feature to sort story mode alphabetically. Props @deruyck for the suggestion!

1.7.4

  • Fix for %title on parent link (was using current page title, not parent page). Props @Cornwell for tracking down the bug!

1.7.3

  • Updated for WordPress 3.9.

1.7.2

  • Fixed a story mode bug where the second-to-last page wouldn’t display a next link.

1.7.1

  • Fixed a sort order bug with the new story mode (oops).

1.7

  • Add Story Mode, which pages through all site content, not just content under a parent item. It basically walks through the site’s tree structure.

1.6

  • Add variable %title so you can display the name of the page on the pager links

1.5

  • Bug fix release (missed an $after_widget print on pages without the pager)

1.0

  • Public release.

0.9

  • Added ability to change level and text of links in the Widget panel.

0.8

  • Converted plugin to 2.8 architecture to support multiple instances.

0.5

  • Added link to parent.

0.1

  • First development version.