I assume this is a page or page template of some sort? I had a similar need so submitted a patch to the Infinite scroll plugin for the inclusion of a new filter infinite_scroll_load_javascript
. By default the plugin doesn’t load on any singular posts/pages, but with this filter you can toggle it to load wherever you’d like.
function wpa_73217($load){
if(is_page_template('my_special_template.php'))
$load = true;
return $load;
}
add_filter('infinite_scroll_load_javascript', 'wp_73217');
Of course, you’r initialization scripts still have to work… aka you’re selectors have to be correct.
Related Posts:
- Show a different number of posts per page depending on context (e.g., homepage, search, archive)
- jQuery plugin only in one page/post
- Display wordpress post’s in popup?
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- Publish Post After Click On A Link
- How to load plugin before the wordpress jquery?
- Get the last post ID
- Enable comments for post with comments meta box removed
- Why is my ajax call refreshing the page?
- Unique post-id for WordPress Multisite Network
- plugin for wp_list_categories with posts
- Replace existing pages with new pages, keep menu links
- Adding “ ” before the last word in multiple defined areas with a plugin
- jQuery function didn’t work in my plugin
- CKEditor: Uncaught TypeError: switchEditors.switchto is not a functiononclick
- New post notification plugin [closed]
- Adding Plugin-specific Fields with wp_insert_post()?
- Execute a plugin only on post pages
- JQuery not working in my plugin [closed]
- Notepad sticky plugin
- How do I “get the next 10 posts after post_id == x”?
- Calendar Solution: Handling upcoming Dates with Posts?
- get_post_type on post.php
- Error with Image Slide plug-in/ s3slider in WP
- Can’t delete Draft Post [closed]
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- Display by Category in Admin
- Redux Framework: Page freezes on typing in Editor
- How can I inject options into an select tag inside the widget form?
- Create shortcode to echo javascript
- how to insert data in wordpress table usnig jquery ajax
- Jquery NoConflict Problem
- Redirect to another page using contact form 7? [closed]
- this jQuery function works perfect in static html page but not on wordpress
- Is it possible to send blog posts via email to subscribers?
- Is there any plugin which can paste a common content to my every post?
- Is there a function to list all uploaded images? How can I add one?
- How to remove js ui library added by default by wordpress
- Creating a widget and missing jQuery
- Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
- Stop wordpress from requesting external jquery from googleapi
- Is there a plugin or a way in the wordpress that would let us have different versions of a post or page accessibe to users?
- check uncategorized category by default
- Api external with wordpress
- How do I make sure that my plugin only runs on article detail pages?
- Why do I get jQuery reference error / undefined when changing name of plugin file?
- Post deleted in trash [closed]
- How to relate 3 wordpress components with each other (Create database relationships)
- How to prevent tabs from opening all at once
- What hook can I use to modify custom post data before it is displayed on the page?
- get current page number with wp_link_pages()
- Archive with months of current year only
- Separate jQuery for Individual Comments?
- Delete data from custom table when deleting a post
- force jQuery to load in the head
- Plugin is creating posts twice
- How to write a new file when new post has been published in WordPress
- How to Get Recent 5 post in My Title bar?
- Plugin for visitors to edit content without logging in? [closed]
- WP Insert Post If user refreshes override new post
- Problems with jQuery and is_admin()
- Summary and Comments on Main landing Page
- Method/Plugin/Hack to Start a Post with an Writing Outline?
- Is it possible to pin a post in second position from top
- How to overwrite the category template in a plugin
- How do I reinit WordPress plugins dynamically using jS?
- Oops! That page can’t be found
- page duplication on wordpress that wont stop
- the_posts_pagination() not working if I add wp_head() to header.php
- WordPress is redirecting me to homepage
- Adding custom post category to categories widget
- Callback hooked to post_updated firing on new posts as well
- How can I see $post object in frontend from functions.php?
- Allow members to create groups on my site
- main navigation menu disappear after adding jquery source file
- jquery plugin won’t fire when hamburger class element clicked
- How to wrap image tag into div for post only?
- Storing Array of values into wordpress options
- jQuery to show icon after .hide
- How to add styling and script to a custom widget plugin
- My own metabox checkbox plugin only saves the last value I’ve checked
- How to prevent authors from editing their post count?
- Not getting result using ajax on wordpress
- How to use shortcode of any plugin to show it visually where i want?
- WordPress not updating post or disable plugin instead a white page appear
- Ger posts from similar tags and categories
- single.php fires more than once after clicking on any post to view with different post id each time
- Twitter List Tweets and Delicious Links as Posts
- Custom feed parameters / Template overriding
- How do I output user_registered time in my correct timezone?
- Ajax in Plugins: returns the whole page
- How to make only selected posts appear on a selected wordpress page
- How to block external download link access if visitor not referred from WP?
- Notifications Bar on home page only
- Distribute post content through several divs [closed]
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- How to get an error message if a form is empty (plugin: Post for site) [closed]
- WordPress GiveWP Plugin showing blank page in none default theme [closed]
- How to update a lot of posts on my WP site with additional content?