[Support request] list of categories instead of a list of entries

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support list of categories instead of a list of entries

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26457
    Sergio
    Participant

    Hello

    Is it possible to use some code to create a page with a list of categories instead of a list of entries?

    I mean, I need to create a grid with the different categories of a custom post type, and when clicking on one, access the list of posts of that category.

    If this is not possible with this plugin, or by adding code, I would appreciate any alternative.

    Thanks in advance

    #26481
    elvin
    Moderator

    Hi there,

    I’m afraid it’s not possible with the plugin as it is created for listing posts rather than taxonomies.

    While you can try creating a custom post type that’s sole purpose is to list categories and make WP Show Posts display them with links redirecting to category archives, this isn’t optimal.

    You can try listing your categories by using the wp_list_categories function.

    https://developer.wordpress.org/reference/functions/wp_list_categories

    #26509
    Sergio
    Participant

    OK
    thank you very much Elvin
    regards

    #26540
    elvin
    Moderator

    No problem. 🙂

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