Viewing 15 replies - 1 through 15 (of 22 total)
  • Can you add a feature to lets us start the pagination at a certain page number of posts?

    i.e.
    [ajax_load_more post_type=”post, portfolio” repeater=”default” posts_per_page=”10″ start_page=”2″ transition=”fade” button_label=”Older Posts”]

    Plugin Author Darren Cooney

    (@dcooney)

    This is not the spot for feature requests.
    With that said, you would use the ‘offset’ parameter to achieve this.

    hi there mate i am struggling to use the shortcode in my template file. was hoping you can help me abit here. my code is as below:

    <aside <?php post_class('post'); ?>>
              	 <?php if( get_the_post_thumbnail() ) : ?>
              <figure><?php the_post_thumbnail('large'); ?></figure>
              <?php endif; ?>  
    
              <h3><?php the_title(); ?></h3>
    
              <p>Posted on <?php the_time('F j, Y'); ?></p>
    
              <p><?php echo strip_tags( get_the_excerpt() ); ?></p>
    
              <a href="<?php the_permalink(); ?>" class="more">More <span>+</span></a>
              </aside>
    
              <?php endwhile; else : ?>
    
    			  <p><?php _e( 'Sorry, no pages found.' ); ?></p>
    
    			<?php endif; ?>
    
              <div class="read-more"><a href="#">Read More <br /> <span>+</span></a></div>
               <div><?php echo do_shortcode('[ajax_load_more post_type="post" posts_per_page="1" max_pages="1" pause="true" button_label="More+"]'); ?></div>

    Hey Dcooney,

    Im wondering if you wouldn’t mind throwing a little option for infinite scroll load distance into the admin settings.

    I would like to be able to set the distance (from bottom of screen, or form top some users might like) at which the ALM “load more” button is to have the posts automatically load more.

    The standard distance is ok for desktop in a lot of cases, but I need it to auto load much pretty much as soon as the button is visible because i do not have a lot of room on the bottom of the page to hit the 150px currently required for auto load.

    Plugin Author Darren Cooney

    (@dcooney)

    Hi Niel,
    I like that idea. I will implement for next release.

    thanks man, for some reason it doesn’t like me overriding it in the plugin js anymore and only gave me 5 entries if i modified the distnce value.. also i would’nt want to have to do it all the time after updates ??

    It would be helpful to have a function complimentary to $.fn.almComplete that is fired if no results are found. e.g.: $.fn.almEmpty. Currently, if no results are found $.fn.almComplete doesn’t fire.

    A use case is, say you’re pulling all the products in a certain category, and the user can toggle between categories. If no entries are found, it’d be helpful to return “Not Found” copy and layout.

    E.g: in ajax-load-more.js, inside the else statement beginning on line 270:

    if ($.isFunction($.fn.almEmpty)) {
        $.fn.almEmpty(alm);
    }

    Something like that should do the trick.

    Plugin Author Darren Cooney

    (@dcooney)

    Another good idea

    You know what would be really nice would be a “refresh” button for the whole ALM post listing. a nice little shortcode button you could specify a label for and just click it to reload the listing. that way you could check for NEW content without reloading the page since its pulled in via ajax.

    I checked the code but don’t have time to play with it right now, but is it possible to do this now by just removing the existing posts and rerunning ajaxloadmore with a button and some Jquery?

    Plugin Author Darren Cooney

    (@dcooney)

    Definitely possible. Will likely be included in core when I get around to building a filtering function.

    any quick solution in the mean time to make this work?

    not asking you to code it all out for me (unless you feel like it ?? ) , but any idea on what element should i destroy to clear the way , and what function would i run to rebuild the listing?

    Plugin Author Darren Cooney

    (@dcooney)

    I don’t have a quick solution at the moment but this is a nice challenge.

    Once I get some free time I’ll try to put together an example. Not within the next 2 weeks though.

    thanks man ??

    The alm shortcodes shows only the buttons at first. users have to click to view the post.

    Why don’t it have any option to show the first 10 post(or any number) to show initially and include a button below that ?

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Feature Requests’ is closed to new replies.