WordPress.org

Ready to get started?Download WordPress

Forums

Alphabetic Pagination
[resolved] Hide none used letters (12 posts)

  1. Bart De Vuyst
    Member
    Posted 1 year ago #

    Hi,

    I've got a feature request: make non-used letters dissappear... i.e.: no posts with letter 'c' > hide that letter in the navigation.

    Thanks!

    http://wordpress.org/extend/plugins/alphabetic-pagination/

  2. Fahad Mahmood
    Member
    Plugin Author

    Posted 1 year ago #

    You are right, as a developer what comes in my mind is that i will give you an input box to provide ignore list of alphabets in CSV format. But i know that won't be good for a normal user. Suggest me a better way, i will update it soon. Your posts are really constructive, be in touch.

  3. Bart De Vuyst
    Member
    Posted 1 year ago #

    Hi Fahad,

    an automatic option that conditionally checks if there are any posts that start with a specific letter could be better. Otherwise you would need to edit the settings every time there are new posts...

    My sites are always updated by non developer users. They don't know how to insert or edit csv's or plugin settings. Plus, developers aren't always around to go and check if there are new posts with letters that weren't used before...

  4. Bart De Vuyst
    Member
    Posted 1 year ago #

    A hidden taxonomy with terms in the form of letters (a, b, c, d, e) could work out too, but this might be really hard to make?

    I've seen functions where each time a post is saved (and updated in this case) a certain term of a taxonomy is added/updated. The pagination buttons then are hidden/shown when terms are used/not used.

  5. Fahad Mahmood
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Bart,

    I have already worked on it. In fact this thing will cost us a lot if we will query to WP Database every time to make just pagination list. I am still working on it this feature that if posts are not in a particular letter then it should be omitted automatically. Hopefully i will get a better solution to it soon.

  6. Fahad Mahmood
    Member
    Plugin Author

    Posted 1 year ago #

    Great thought, lets make it user friendly first then will work on this idea. I think it will work, i will flag the alphabets with BOOLEAN if a single post will be existing in DB.

  7. Bart De Vuyst
    Member
    Posted 1 year ago #

    Cool, thanks! Could you make this work with custom post types as well?

  8. Fahad Mahmood
    Member
    Plugin Author

    Posted 1 year ago #

    In fact i am the first user of this plugin as well. I used it on my blog too. Custom posts are not an issue, but it will work wherever there will be a listing. Try it with your custom posts too, if doesn't work we will make it work :)

  9. Bart De Vuyst
    Member
    Posted 1 year ago #

    Well, it already works with CPTs :-)

  10. Fahad Mahmood
    Member
    Plugin Author

    Posted 1 year ago #

    Good

  11. LawrenceP
    Member
    Posted 5 months ago #

    Was this included in the current version?
    When I use the plugin, I still see letters appear that don't have corresponding posts.

    Thanks

  12. Fahad Mahmood
    Member
    Plugin Author

    Posted 5 months ago #

    Hi LawrenceP,

    This feature is still in testing mode. It was not included in current version. I am trying out the method which will help us to minimize the load on DB on every page refresh instead of querying DB for every single letter.

    Thanks,
    Fahad

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.