AJAX RS WP Book Showcase Shortcode

The [rs_wp_book_showcase_ajax] shortcode is the core feature of the RS WP Book Showcase plugin. It allows you to display a fully responsive, AJAX-powered book grid or list with advanced filtering, searching, and sorting capabilities.

This shortcode is designed to load content dynamically without refreshing the page, providing a seamless user experience for your visitors.

Basic Usage

To display the book showcase with default settings, simply add the following shortcode to any page or post:

[rs_wp_book_showcase_ajax]

Configuration Parameters

You can customize the appearance and functionality of the showcase using various attributes. Below is a detailed breakdown of all available parameters.

1. General Settings

Control the core functionality of the grid, such as search forms and pagination.

AttributeAccepted ValuesDefaultDescription
show_search_formtrue, falsetrueDisplays the advanced search filter bar above the book grid.
show_sorting_formtrue, falsetrueDisplays the “Sort By” dropdown (Price, Title, Date) and result count.
show_load_more_btntrue, falsetrueShows a “Load More” button for pagination instead of standard page numbers.
books_per_pageInteger (e.g., 8, 12)8The number of books to load initially and per “Load More” click.
load_in_modaltrue, falsetrueIf true, clicking a book opens a quick-view popup. If false, it redirects to the single book page.

2. Book Information Display

Control which elements are visible for each book card.

AttributeAccepted ValuesDefaultDescription
show_imagetrue, falsetrueDisplays the book cover image.
show_titletrue, falsetrueDisplays the title of the book.
show_authortrue, falsetrueDisplays the author’s name.
show_pricetrue, falsetrueDisplays the book price (requires WooCommerce).
show_excerpttrue, falsetrueShows a short description of the book.
excerpt_limitInteger60Limits the number of words displayed in the excerpt.
show_buy_buttontrue, falsetrueDisplays the external/affiliate buy button.
show_add_to_cart_btntrue, falsefalseDisplays the WooCommerce “Add to Cart” button directly in the grid.
show_read_more_buttontrue, falsefalseAdds a “Read More” button linking to the book details.
show_msltrue, falsetrueDisplays Multiple Sales Links (Amazon, B&N, etc.) if configured in the Pro version.

3. Layout & Styling

Customize the visual arrangement and alignment of the books.

AttributeAccepted ValuesDefaultDescription
layoutdefaultdefaultThe base layout style.
image_positiontop, left, righttopControls where the image sits relative to the text.
top: Standard Grid view.
left/right: Creates a List view layout.
content_aligncenter, left, rightcenterAligns the text content inside the book card.
show_masonry_layouttrue, falsetrueEnables Masonry layout (staggered grid). Note: Only works if height_stretch is set to false.
height_stretchtrue, falsetrueForces all book cards in a row to have the same height.
lazy_load_imagestrue, falsetrueEnables lazy loading for book covers to improve page speed.

4. Responsive Grid Settings

Control how many books appear per row on different screen sizes.

AttributeValueDefaultScreen Size Target
books_per_row1, 2, 3, 4, 63Large Screens (Desktop, ≥ 992px)
books_per_row_laptop1, 2, 3, 4, 63Laptops (≥ 768px and < 992px)
books_per_row_tablet1, 2, 3, 4, 62Tablets (≥ 576px and < 768px)
books_per_row_mobile1, 2, 3, 4, 61Mobile Phones (< 576px)

5. Advanced & Performance

AttributeAccepted ValuesDefaultDescription
enable_cachetrue, falsetrueCaches the query results to reduce database load and improve speed.
search_fields_col1 to 44Determines the number of columns in the advanced search form layout.

Examples

Example 1: Standard Grid View

A classic 4-column grid with search and sorting enabled.

[rs_wp_book_showcase_ajax books_per_row="4" show_search_form="true"]

Example 2: List View (Image on Left)

Best for detailed book lists where descriptions are important.

[rs_wp_book_showcase_ajax image_position="left" content_align="left" books_per_row="1" books_per_row_laptop="1"]

Example 3: Minimalist Store

Hides excerpts and search forms for a clean look, focusing on images and buy buttons.

[rs_wp_book_showcase_ajax show_search_form="false" show_excerpt="false" show_sorting_form="false" content_align="center"]

Example 4: Performance Optimized

For large catalogs, ensure caching and lazy load are active (enabled by default, but good to know).

[rs_wp_book_showcase_ajax enable_cache="true" lazy_load_images="true" books_per_page="12"]

Was this article helpful?

© 2026 RS WP Book Showcase. Built with ❤️ for authors.