WordPress.org

Ready to get started?Download WordPress

Forums

Category links on homepage (2 posts)

  1. sajeconsultants
    Member
    Posted 1 year ago #

    My site has categories set up like this:

    Category 1
    - Subcat 1
    - Subcat 2

    Category 2
    - Subcat 1
    - Subcat 2

    On my homepage, I'd like to do a query for all top level categories, and provide links to the category page. So in the example above, there would be links for:
    http://www.domain.com/category-1
    http://www.doamin.com/category-2

    How can I do this and insert it into my home.php template file?

  2. esmi
    Forum Moderator
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic