You could accomplish something similar via custom javascript on the page. It would allow the user to move through the divs (five at a time) while remaining on the same page, similar to a carousel. The code would work something like this:
- Hide all of the divs by default (via css)
- On page load, loop through those divs and show the first five.
- If there’s more than 5, add some pagination links/buttons to allow the user to “page” through the still hidden divs.
- When the user clicks one of those links/buttons, your code will again hide all the divs, then loop through them again, revealing the appropriate set of 5. So, for example if the user clicks on “page” 2, then your javascript needs to reveal divs #6-10.
Related Posts:
- add_filter the_content str_replace after shortcode
- WordPress Ajax always returns a 404 error
- Adding a search form inside a div
- How to use SRCSET with get_the_post_thumbnail()?
- How to use a frontend URL with a Plugin
- How do I make wordpress comment fields required?
- How to display blog images using wordpress in existing project
- WordPress Wysiwyg Content not being displayed
- Javascript code inside “” in core WordPress files .php
- How to display a value from a radio button in the options menu in wordpress
- How do I add HTML to a PHP function [closed]
- Custom image upload
- Removing unneccessary p-tags (Not every p)
- WordPress automatically adding html tag around PHP code
- Missing sidebar parameter “fix” – before_content
- How to get the POST TITLE using the POST ID?
- Load a page into a div with Ajax
- Converting HTML Template to WordPress Theme
- Multiple options not staying selected after saving
- Why the JavaScript code is ignored from wp editor?
- How to change redirection route to a php page for making it only accessible by logged-in members?
- How to remove ?wp-mce-4103-20162941
- Why Won’t My Inputs in a form with a Get method work together?
- parts of url disappear when using # inside href=”” [closed]
- Dot is not added at the end of href
- Add .htm extention to a custom taxonomy
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- Noscript not working as it should in wordpress site
- Syntax error when I try to insert my loop into an unordered list? [closed]
- How to make modifications only to certain elements of an HTML string on the server-side?
- Printing HTML codes
- HTML escaping data with ajax requests
- How to retrieve the data from the sever and displaying it in a page?
- How to execute html code inside php?
- Add data-id attribute to child page links
- HTML table attributes ignored
- wp_insert_post() with HTML tags using PHP
- Prevent redirect to wp-login.php
- How to use the checked() function to check for a non-empty var
- Calling function in loop causes repeat data
- Remove   from the_excerpt
- Find out last 7 days of upload images, last week uploaded image from Gallery and display them in different pages
- Custom forms with HTML
- Wrap title and excerpt in a div (latest posts block)
- Displaying images outside the content
- how to changes mobile menu toggle breakpoint in WordPress
- PHP inside echo HTML
- html form: redirect page after form completes submit function and posts data
- WordPress User Meta value variable into Google Gauge Chart
- WordPress Post Block Element not properly parsed with the_content filter
- Add other class content with reference class value
- PHP function for horizontal Woocommerce thumbnails and badges
- What are the advantages/disadvantages of ways to use php template files?
- Configure WordPress to Use Responsive Image Rendering
- HTML comment cause issue in functions.php script root
- Slug duplicates once clicking on link
- couldnt show short code atts in category
- separate list of programs in html/javascript coming from php
- Remove span tags from WooCommerce Downloads page
- How to enable HTML tags in category description without breaking the category page
- Can’t display anything through homepage text editor
- How to find and delete a menu item in php?
- My single.php page skips the first div tag
- opens like sitename.com/URL
- WordPress Slider is not working
- How to display post meta bellow every posts
- Woocommerce custom attributes list help
- WooCommerce multiple custom fields code
- How to override html codes in wordpress?
- Access certain Entry in HTML-Table and pass the entry-data in WP not working [closed]
- Switch position of elements in the footer [closed]
- Create html tree sitemap
- Can’t get_users info by using json_encode
- scroll scrpit to particular button position to next id when click button
- Pass form attributes to another php template in wordpress
- Custom HTML form using PHP – help with ajax/username validation
- Code works on page-example.php by not category-example.php
- Category – “No content found”
- Add options to WordPress backend
- Automatically create a loop for post ID
- WordPress – Image href for home menu nav not working
- What is the best way to get the first few post from WordPress in different divs using a loop?
- Run php function after html click after page refresh
- Get all the contents of taxonomy and sort by term
- Gallery requires a featured image but does not show it in posts/pages
- Save Option on Database
- How do I modify the with wp_nav_menu()
- Parse error: syntax error, unexpected ‘}’ in
- Sorting Problem
- Custom HTML/CSS Theme into WordPress – SEO considerations
- Load wp_editor on button click
- How to enqueue structured data as file – jsonld file seems not to work
- Add topbar to static html page
- ‘This Field is Required.’ is Not Displaying on CF7 [closed]
- Slick slider not working on wordpress
- How to modify default tags in wp_head()
- #038 & wordpress Help
- Editing stylehseet url in head section of WordPress
- How can I process a form submission from an HTTP POST request?
- Allow HTML in custom taxonomy description, and show it on front end