Support » Plugin: Switch Site Rewrite » [Plugin: Switch Site Rewrite] custom post types and switch_to_blog

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ron Rennick

    (@wpmuguru)

    Is the custom post type registered in the second site?

    Thanks Ron. It’s not registered. But, I will try that and see what happens. I wanted to avoid it…

    Thanks Things seem better when the post type is registered. No more permalink issues.

    Is it proper to “temporarily” register the post type when the shortcode is called? I’m first checking to see if the post type is registered, with:

    if ( !post_type_exists( 'faculty_profile' ) )

    If it’s not registered, I register it. If it is registered, I assume things will work.

    Is there a better way to do that?

    edit: saw your tweet about looking at how sitewide tags does it. I’ll take a look. thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Switch Site Rewrite] custom post types and switch_to_blog’ is closed to new replies.