Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

How to create a sortable index with load more button?

  • Hello,

    Is it possible to create a sortable index (abphbetical order) for a custom post type with an expandable “load more” button under each section using generatepress and generateblocks?

    Or would I need a separate plugin?

    I have attached an example of a ideal page with the functions I would like to have.

    I figure I’ll have to create a custom post type with the taxanomies for the sorting using acf, and display each taxanomy under a letter using generate blocks. I can then have jump links to move to each letter. But couldn’t figure out the load more button or to diplay the posts in alphabethical order.

    Anyway, thanks in advance for the assistance.

    Julien

  • Hi Julien,

    It’s not possible with the query loop block of GB at this moment.

    1. Load more (infinite scroll) only works on index page like blog, and archives, it does not work with query loop.

    2. To add a filter or sorting function, it requires a 3rd party plugin.

    3. To enable infinite scroll for CPT archives, you will need to use a PHP filter like this:https://docs.generatepress.com/article/option_generate_blog_settings/

  • Ok, thank you.

    I’ll create a temporary page for now, then research which plugin will work best for the final version of the guide.

    Best regards.

    Julien

  • You are welcome   🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.