The MU forums have moved to WordPress.org

changing and getting themes externally (4 posts)

  1. animasola
    Member
    Posted 14 years ago #

    Hi, i managed to use these functions: switch_theme($theme, $style) and get_current_theme() to set and get the theme for a blog. the problem is, I can't seem to set and get the theme for a blog other than the main one which has a blog id of 1. I tried setting the $wpdb class through set_blog_id($blog_id) but that doesn't seem to work. Perhaps it's not related to the blog tables. What should I set then in order to set and get the theme for a particular blog?

    Any piece of advice would be greatly appreciated. Thanks!

  2. andrea_r
    Moderator
    Posted 14 years ago #

    What exactly are you trying to do - overall that is?

  3. animasola
    Member
    Posted 14 years ago #

    Somewhat create an external admin panel, because I have to integrate the wordpress blog in a bigger system. Wordpress is to be a blog module for this bigger system.

  4. cafespain
    Member
    Posted 14 years ago #

    You would use a different function :)
    Look up :
    get_blog_option and update_blog_option

    You want to change the template and stylesheet options.

About this Topic

  • Started 14 years ago by animasola
  • Latest reply from cafespain