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.

Plugin: Aha Prev Next
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

  1. Go to Plugins → Add new.
  2. Search for Aha Prev Next (or upload the plugin ZIP file).
  3. Click Install now, then Activate.

Via FTP

  1. Unzip the plugin ZIP file on your computer.
  2. Connect to your server via FTP and go to wp-content/plugins.
  3. Upload the plugin folder (e.g. aha-prev-next) into wp-content/plugins.
  4. 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

Display

Style

Uninstall

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.

Shortcode: [aha_prev_next]
Optional parameters: position, show_thumbnail, title_length.

Attribute reference

AttributeValuesNotes
positionabove, belowOverride the layout position (Before or After content).
show_thumbnail1, 0Toggle post featured image thumbnail inside card.
title_lengthinteger (10–120) or 0Override post title character limit. Use 0 to disable title truncation.

Quick examples

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

FilterParametersDescription
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

HookWhen 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.