WordPress.org

Ready to get started?Download WordPress

Forums

Simple User Listing
[resolved] Pagination (15 posts)

  1. bffnb
    Member
    Posted 8 months ago #

    HI!

    Questions:

    1.I will display all my Users in a page with using the shortcode. But i have 600 users... Is there any pagination? I will show up 20 Users per page for example and then pagination buttons for page two and so on?

    Any way to achieve this with your plugin?

    2.How can i remove the search button, title and field above the listing of the users when showing up a list in a page with shortcode? I only need the list of the users...

    Thank you so much

    http://wordpress.org/plugins/simple-user-listing/

  2. helgatheviking
    Member
    Plugin Author

    Posted 8 months ago #

    Pagination is built in by default.

    Search is added to a hook so you can remove it the same way you'd remove any WordPress action. Adding the following to your functions.php

    function remove_sul_search(){
    	global $simple_user_listing;
    	remove_action( 'simple_user_listing_before_loop', array( $simple_user_listing, 'add_search' ) );
    }
    add_action( 'init', 'remove_sul_search' );

    As an alternative you could use the template overrides described in the readme and simply load a blank search-author.php

  3. bffnb
    Member
    Posted 8 months ago #

    Hi!

    Great, thank so much for your fast response - and help!

    best regards

  4. bffnb
    Member
    Posted 8 months ago #

    Hi again!

    Pagination works great!

    it takes the number of "Blog pages show at most" under "Settings"-"Reading"
    and also the php code for the functions.php works fine ;)

    Awesome and simple! Thank you again!

  5. helgatheviking
    Member
    Plugin Author

    Posted 8 months ago #

    Yes, that is the default setting. You can change that in the shortcode with the number parameter.

    [userlist number="5"]
  6. heatstroke
    Member
    Posted 7 months ago #

    Hi!

    Is there any chance to get a bit more detailed pagination?

    Actual patination is like <Previous Next>

    It would be nice to have something like <Previous 1 2 3 ... N Next>

    Is it possible?

    Regards :)

  7. helgatheviking
    Member
    Plugin Author

    Posted 7 months ago #

    Yes, just install and activate WP Pagenavi

  8. heatstroke
    Member
    Posted 7 months ago #

    Ok, I will see what is the best solution. My theme has already a navigation system integrated, so if I install WP Pagenavi, I will have to somehow disable the default navigation.

    Thank you ;)

  9. helgatheviking
    Member
    Plugin Author

    Posted 7 months ago #

    You are free to customize the navigation HTML however you'd like. See the FAQ section on How Can I Customize the HTML/text. In theory you should be able to make it match your theme, but I can't help you with that.

  10. adamrafferty
    Member
    Posted 3 weeks ago #

    HI

    Are you still reccomending the wp-navi plug in?

    I've been looking into other ways to to this, but none of the other code seems to be working.

    The WP-NAVI plugin seems to have a lot of negative comments - i.e. other things break, etc.

    Is there any other way you'd suggest the pagination?

    I'll probably give the plugin a try in the meantime.

    Thanks

    Adam

  11. helgatheviking
    Member
    Plugin Author

    Posted 3 weeks ago #

    SUL has basic WordPress-style navigation built in, so WP PageNavi is supported but not required. I've not really heard much about problems with WP Pagenavi and do use it on my personal site. You could always custom-code your own pagination as SUL is meant to be very flexible.

  12. adamrafferty
    Member
    Posted 3 weeks ago #

    Thanks. I used the plugin you rec'd and it works perfectly.

    I hope that you continue with maintaining your plugin. It is excellent, and does what it should.

    It's perfect that it is lightweight, minimal load and not too much.

    Thanks! Excellent work.

    Adam

  13. helgatheviking
    Member
    Plugin Author

    Posted 3 weeks ago #

    Thanks Adam. I'm planning on maintaining it, bugfixes as needed, etc, but it is certainly not undergoing "active" feature development. It is up on github so I'm open to pull requests. But keeping it kind of lean and focused keeps the support issues down which is very important for a plugin that generates zero revenue.

  14. adamrafferty
    Member
    Posted 3 weeks ago #

    I understand that you can't pour time into a zero revenue plug in, but it would be a shame to have so many people use & love it and then have it break later - especialy if it is getting you attention.

    Then again, when it is not worth it, or impossible due to time constraints - well, I've been there too!

    Lean & focused is super, as long as it does it's one job right - and not 10 jobs sort of right.

    Thanks again!

  15. helgatheviking
    Member
    Plugin Author

    Posted 3 weeks ago #

    I haven't touched it in months and it still seems to be working fine, so here's hoping that it will continue to do so. There really isn't a lot going on in the plugin so it shouldn't break terribly unless WP radically alters the User Query class, but at the moment I have every intention of keeping it functioning in case it does.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.