Thank you for using Aha Prev Next
Thank you for trusting our plugins. Aha Prev Next provides a simple, clean, and highly configurable previous/next navigation card system to keep your visitors reading.
Discover other Aha Plugins and get more out of WordPress — tools built for quality and simplicity.
Visit Aha Plugins →About the plugin
Aha Prev Next is a lightweight post navigation plugin for WordPress. It displays beautiful, responsive navigation links connecting the current post to the previous and next entries, encouraging visitors to browse more content and reducing bounce rate.
Version: 1.0.0
It includes two distinct inline layout styles (Before Content and After Content) and integrates directly with WooCommerce product page hooks. It also supports featured image thumbnails, product price display, title truncation, custom background and text colors, and is fully responsive.
Installation
Via WordPress admin
- Go to Plugins → Add new.
- Search for Aha Prev Next (or upload the plugin ZIP file).
- Click Install now, then Activate.
Via FTP
- Unzip the plugin ZIP file on your computer.
- Connect to your server via FTP and go to
wp-content/plugins. - Upload the plugin folder (e.g.
aha-prev-next) intowp-content/plugins. - In the WordPress admin, go to Plugins and activate Aha Prev Next.
Configuration (tabs)
After activating the plugin, go to Aha Prev Next in your WordPress admin sidebar. The settings page is divided into the following tabs:
General
- Enable Prev/Next navigation – Check to globally activate previous/next navigation on your site.
Display
- Enabled post types – Choose which post types (e.g. Posts, Pages) will display the navigation cards. You can extend this to custom post types using developer filters.
- Position – Select the layout position for standard post types:
- Before content – Renders the cards inline at the beginning of your post.
- After content (recommended) – Renders the cards inline at the end of your post.
- WooCommerce product position – Select where the navigation links render on single product pages. Options include before or after the product content, or using standard WooCommerce hooks (such as below product details, or after description tabs) to prevent them from getting stuck inside tabs.
Style
- Thumbnail – Enable this option to show the post's featured image inside the navigation card.
- Title length – Define the maximum character limit for post titles to prevent cards from overflowing.
- Colors – Customize the card design to fit your theme:
- Card background – Color of the card container background.
- Title color – Color of the post title, arrows, and product price text.
- Subtitle color – Color of the "Previous" and "Next" header labels.
Uninstall
- Remove all plugin data when the plugin is deleted – Enable this checkbox if you want to completely erase all plugin settings from the database when you click "Delete" on the WordPress Plugins screen.
Shortcode [aha_prev_next]
Aha Prev Next displays navigation automatically on your selected post types. However, if you want to manually insert the cards in a specific position, block template, or widget area, you can use the shortcode.
[aha_prev_next]Optional parameters:
position, show_thumbnail, title_length.
Attribute reference
| Attribute | Values | Notes |
|---|---|---|
position | above, below | Override the layout position (Before or After content). |
show_thumbnail | 1, 0 | Toggle post featured image thumbnail inside card. |
title_length | integer (10–120) or 0 | Override post title character limit. Use 0 to disable title truncation. |
Quick examples
- Default layout:
[aha_prev_next] - Prepend navigation before content:
[aha_prev_next position="above"] - Append navigation without thumbnails:
[aha_prev_next position="below" show_thumbnail="0"]
Hooks & Filters
Aha Prev Next is designed to be developer-friendly. You can use these hooks and filters inside your theme's functions.php or custom plugins to extend the default behavior.
Filters
| Filter | Parameters | Description |
|---|---|---|
aha_prev_next_allowed_post_types |
$allowed (array) |
Filter the list of post types supported by the plugin (e.g. add custom post types). |
aha_prev_next_auto_enabled |
$enabled (bool), $post_id (int) |
Filter whether auto-insertion is enabled on the current page. Useful for conditionally disabling cards on specific IDs. |
aha_prev_next_adjacent_ids |
$ids (array), $post_id (int) |
Modify the adjacent post IDs. Let's you implement custom post loops, same-category filtering, etc. |
aha_prev_next_uninstall_option_names |
$option_names (array) |
Add additional database options to be cleaned up when the plugin is deleted. |
aha_prev_next_settings_tabs |
$tabs (array) |
Add, remove, or modify setting page tabs in the admin area. |
Actions
| Hook | When it fires |
|---|---|
aha_prev_next_init |
Fires when the plugin is fully loaded (on plugins_loaded action). |
aha_prev_next_activate |
Fires when the plugin is activated. |
aha_prev_next_deactivate |
Fires when the plugin is deactivated. |
aha_prev_next_render_before |
Fires immediately before the navigation cards HTML template is loaded. |
aha_prev_next_render_after |
Fires immediately after the navigation cards HTML template is loaded. |
Example: Register custom post type 'portfolio'
add_filter( 'aha_prev_next_allowed_post_types', function( $post_types ) {
$post_types[] = 'portfolio';
return $post_types;
} );
Example: Restrict navigation to the same category
add_filter( 'aha_prev_next_adjacent_ids', function( $ids, $post_id ) {
// Custom logic to retrieve adjacent posts within the same category
$prev_post = get_adjacent_post( true, '', true, 'category' );
$next_post = get_adjacent_post( true, '', false, 'category' );
$ids['prev'] = $prev_post ? $prev_post->ID : 0;
$ids['next'] = $next_post ? $next_post->ID : 0;
return $ids;
}, 10, 2 );
Video – Setup and demo
Video walkthrough showing how to configure layouts, custom colors, and verify the frontend result.
[Video placeholder]
Add your setup and demo video embed (YouTube, Vimeo, etc.) here.