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()
- What is the easiest way to create a custom field archive?
- Manually set global $post vars with an ID, in order to use template tags
- Pass PHP variable to javascript
- How to prevent a post from being deleted?
- force enqueue script to be first in order of prominence
- WordPress 3.5 Media Manager – add a button
- How can I make it so the Add New Post page has Visibility set to Private by default?
- How to moderate posts
- Archive list with only years and months
- How can I make default jquery version of WordPress “async”?
- Limit access to posts/pages by user roles
- Show Similar Post Titles ( Similar to Stack Exchange )
- How to add option box in “Edit Post” plugin API?
- Help making my pagination plugin better
- How Do I Use The WordPress Plugin Posts 2 Posts by Scribu?
- How do I unlock a post programmatically?
- How to work with Syntax Highlighter Evolved?
- User-Specific Timezones? Hack? Plugin?
- Handling jQuery Component Collision
- Delete Post With No Traffic?
- Automatically Creating Posts for Popular Forum Topics or Products [closed]
- Let readers suggest edits from the frontend
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- Is dynamic forms/entries possible in Widget?
- Disallow a user to post in certain categories
- How To Ignore a Filter On Applying Filter the Content In a Function
- Auto-post to multiple sites like Posterous? [closed]
- Article source link for posts
- publish_post hook isn’t working for scheduled posts
- How to get posts by content?
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Share buttons on article footer
- Editor not displaying dynamically after clicking on the button
- jQuery AJAX call not executing in Plugin
- How to create a Page alias in WordPress
- Plugin for changing a post’s category based on it’s post date?
- WordPress Enqueue Script Chaos (jQuery & Foundation.js)
- How to fetch serialized data from wordpress options
- Change Permalinks Structure to a Sequential Number for Each Post?
- Publish Post After Click On A Link
- Check javascript file Proper way in functions.php
- WP get_permalink Return Wrong URL
- How to extract images of post and pages excluding header and logo image in wordpress?
- Dynamic HTML not displaying at respective place
- How to load plugin before the wordpress jquery?
- Fastest way to loop through all posts?
- Get the last post ID
- WordPress Plugin development Call to undefined function jQuery()
- Add jQuery to WordPress page
- Enable comments for post with comments meta box removed
- Edit/revise option for authors to suggest improvement to posts [closed]
- Is there a plugin to display certain posts on certain pages? [closed]
- Why is my ajax call refreshing the page?
- Custom Post Type causes Page Not Found
- Unique post-id for WordPress Multisite Network
- Is there an action that is called when a post is restored from the trash?
- How do I use WordPress PHP functions in my Javascript code?
- Disable wordpress from including jQuery in the head section
- What’s the point of using WordPress’s built in admin-ajax.php?
- Admin-ajax.php is dying “0” without processing function
- plugin for wp_list_categories with posts
- How to filter content post only on save
- post expire after x days
- How to load default scripts included with WordPress correctly?
- Action on post publish
- Replace existing pages with new pages, keep menu links
- Get image URL from media library in input
- Adding “ ” before the last word in multiple defined areas with a plugin
- [Plugin: Posts 2 Posts] How does it work?
- How to create popup same as wordpress popup feature
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- Ajax with jQuery UI dialog not working
- Set attached to state
- Plugin jQuery version VS Theme jQuery version: search for best practice
- Use plugin or custom post type for game score functionality
- Tag link suggestion plugin
- How to add new tabs in post.php
- How to change ID of an attachment in wp_posts and its related tables correctly?
- Collaborative post submission [closed]
- Adding a jquery script to plugin contact form 7
- jQuery function didn’t work in my plugin
- CKEditor: Uncaught TypeError: switchEditors.switchto is not a functiononclick
- WordPress 3.5 Media Manager – add a button
- jQuery Plugin to use WordPress functions in AJAX request
- Handling jQuery Component Collision
- New post notification plugin [closed]
- Is there plugin to show recent posts from one website in the widget area of another?
- How do I make sure a plugin loads a script after jQuery
- Bulk Image Uploader to create new post from each image [closed]
- how to include a simple jquery file into a wordpress plugin
- Add get_option to jquery
- How use %like% in sql statement wordpress
- Display comments of users on single page
- Get the url of the full sized attachment image using post ID?
- Adding Plugin-specific Fields with wp_insert_post()?
- Adding Attachment Display Settings in custom media frame