WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Show sub blog categories on top level site (4 posts)

  1. Sina
    Member
    Posted 3 years ago #

    I am trying to work out a way to show sublog categories on the top level site.

    Is there a way to do this using <?php wp_list_categories('show_count=1&title_li='); ?>?

    Is it possible using global $blog_id;? I can reference the blog_id since it's only one sub blog I want to show the categories from.

    Thank you!

  2. You can use switch_to_blog, but I'd only suggest that if you have a small number of blogs you're pulling from.

  3. Sina
    Member
    Posted 3 years ago #

    Thank you so much - that was exactly what I was looking for.

    Just curious, although it will only be pulling from one blog - do you think there is a limit to the amount of categories that I can pull in before it starts affecting performance?

  4. thousands. :)

Topic Closed

This topic has been closed to new replies.

About this Topic