WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Listing categories and custom post related (2 posts)

  1. robertodimarco
    Member
    Posted 1 year ago #

    Hi!
    I need to create a menu with "Category" as parents, and "Custom Post" as children.

    Like this:
    Category 1
    -Custom post 1
    -Custom post 2
    -Custom post 3
    Category 2
    -Custom post 1
    -Custom post 2
    -Custom post 3

    I've found a discussion :
    http://wordpress.org/support/topic/wp_list_categories-with-posts
    with this plugin:
    http://pastebin.com/YFQC6biN
    the plugin is very good, but i need to modify to show custom posts insted of posts.
    Any idea? thank u

  2. robertodimarco
    Member
    Posted 1 year ago #

    I've found this:

    http://www.queness.com/code-snippet/7160/how-to-list-categories-along-with-their-posts

    change "post_type" with the name of custom post ;)

Topic Closed

This topic has been closed to new replies.

About this Topic