swellbuilt
Forum Replies Created
-
Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] Future Post StatusAwesome, thank you!
Forum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] Future Post StatusA filter hook would be awesome 🙂
The use case is that we have a page that has both news and events. The events mostly have future dates.
Thanks!
ABForum: Plugins
In reply to: [Ajax Load More – Infinite Scroll, Load More, & Lazy Load] Future Post StatusThis else statement is forcing non-admin users to only see published posts. The modification below allows all users to see future events. Obviously I’d rather not modify the actual plug-in code 🙂
if ( $post_status != 'publish' && $post_status != 'inherit' ) { // If not 'publish', confirm user has rights to view these old posts. if ( current_user_can( 'edit_theme_options' ) ) { $post_status = $post_status; } else { // $post_status = 'publish'; // MY MODIFICATION TO ALLOW FUTURE POSTS $post_status = $post_status; } }Helps a ton. Thank you for the quick response, and love the plug-in!
Ahh, ok cool. Looks like the preloaded add-on is a good option. If I purchase the Pro version for my dev URL, can I easily switch it to my live URL once I launch?
I did this as a workaround:
var initialLoad = 0;
function loadMorePort() {
if (initialLoad < 3) {
almTriggerClick();
}
}window.almComplete = function(alm) {
initialLoad++;
setTimeout(function() {
loadMorePort();
}, 600);
};I had to add the setTimeout as window.almComplete wouldn’t trigger almTriggerClick if called immediately. This works, but there is a slight delay and looks clunky 🙂
Hey FashionGHANA,
I had success installing the dev version listed towards the bottom of this thread. Just install it and you should be good to go.
http://wordpress.org/support/topic/error-after-upgrade-to-v21?replies=33
Dev version of 2.1 looks to be in working order. Is your plan to release a 2.1.1 version next?