WordPress.org

Ready to get started?Download WordPress

Forums

get categories from the main site? (3 posts)

  1. castcrus
    Member
    Posted 1 year ago #

    I set up a multisite with 1 main site and 1 client site. they are using different themes.

    the client site is more like a application added to the main site, so, although it has its own categories, i'd like to show a category list of the main site at its front end.

    i'd like to use wp_list_categories() , but there is no parameter to do so.

    how can it be done? i need only to show the categories and their links , not syncing it across

    thanks in advance.

  2. castcrus
    Member
    Posted 1 year ago #

    just found a solution, switch_to_blog()

    but they say this slows down the sites, is any other method?

  3. David Sader
    Member
    Posted 1 year ago #

    Try a "before" and "after" test with something like http://ismyblogworking.com

    "Slows down" is a relative term. Adding any cpu/sql cycles to a page will slow it down, sure. Try a cache plugin to speed it all back up again, if you desire the performance boost.

Topic Closed

This topic has been closed to new replies.

About this Topic