Categories
Package/plugin/module WordPress

Admin Post Navigation v1.5

I’d like to announce the official release of the updated Admin Post Navigation plugin (v1.5) for WordPress.

Adds links to the next and previous posts when editing a post in the WordPress admin.

This is a significant update from the previous release. 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.

For more details, instructions, screenshots, and the download link, visit the plugin’s official homepage at :
coffee2code.com/wp-plugins/admin-post-navigation/.

Comments welcome on this post for this version of the plugin. Comments will be closed once this release has been superseded by another.

Read more for a detailed ChangeLog of the release.

Detailed ChangeLog

These are the detailed changes, which may or may not make sense to you depending on your familiarity with the previous features and internals of the plugin.

  • Change post search ORDER BY from ‘post_date’ to ‘ID’
  • Add filter ‘c2c_admin_post_navigation_orderby’ for customizing search ORDER BY field
  • Add filter ‘c2c_admin_post_navigation_post_statuses’ for customizing valid post_statuses for search
  • Deprecate (but still support) ‘admin_post_nav’ filter
  • Add filter ‘c2c_admin_post_navigation_display’ filter as replacement to ‘admin_post_nav’ filter to allow modifying output
  • Retrieve post title via get_the_title() rather than directly from object
  • Also strip tags from the title prior to use in tag attribute
  • Don’t navigate to auto-saves
  • Check for is_admin() before defining class rather than during constructor
  • esc_sql() on SQL strings that have potentially been filtered
  • Use esc_attr() instead of attribute_escape()
  • Store plugin instance in global variable, $c2c_admin_post_navigation, to allow for external manipulation
  • Fix localization of the two strings
  • Instantiate object within primary class_exists() check
  • Note compatibility with WP 3.0+
  • Drop compatibility with version of WP older than 2.8
  • Minor code reformatting (spacing)
  • Remove docs from top of plugin file (all that and more are in readme.txt)
  • Remove trailing whitespace in header docs
  • Add Upgrade Notice and Filters sections to readme.txt
  • Add package info to top of plugin file

8 replies on “Admin Post Navigation v1.5”

Hi Becky: Stripping tags from titles prior to use in tag attributes is standard practice in WP. Tags are not permitted within HTML attributes. If present, they can either mangle the HTML (and thus the appearance of the page) or could get encoded on the server, which turns the tags into plain text, which can mangle the readability of the text.

In short, the change with regards to SEO is either negligable or beneficial to you. It’s a good thing.

hey, scott,
Is there any way to modify the file so that it will work with all post types as opposed to just “posts”? i’ve got some custom post types set up and would like to be able to use this with all of them.

-cody

Hi, Cody: Good idea. I will include provisions to do so in the next version, which I may be able to release before long. I’m guessing that you are interested in navigating within post types (i.e. if editing a post, the previous/next links will take you to other posts, whereas if you are editing an “event” post type, the prev/next links take you to another event)? (The other way it could be implemented is that the navigation could work across post types (i.e. if you were on a “post”, clicking next could potentially take you to an “event” post type).

First of all, LOVE this plugin.

Thought you might be interested to know that 1.6 DOES work on 3.1 with multisite, but it DOESN’T work when Network Activated. Only single-site-activated. Fine with me since I only have my main site and one other, but for people with large multisite installations this might be an issue. Just a heads up.

I’m having a problem with the plugin out of the box. It works well with both posts and pages, but when i try to navigate through my custom post type (Products) it only shows up on the first and last items (ordered by ID).

So if i select the first post under Products i see the “Next” navigation element as i should, but then when i click on next and advance to the next post I no longer see any navigation.

If i start out selecting a post located in the middle somewhere I do not see the navigation.

Any ideas what could be up?

Thanks (this is an awesome plugin btw)

Comments are closed.