[Resolved] [Plugin: Switch Site Rewrite] custom post types and switch_to_blog
I have a multisite network set up. For simplicity, let’s assume there are only two sites (in reality, we have many more).
Site A == defines a custom post type (faculty_profile)
Site B == we’d like to pull in a list of faculty_profiles from Site A
I have it working, using code like this:
This seems to work ok. The list of posts is pulled fine. But, the permalinks are not correct.
Instead of the pretty CPT permalinks, I get
While the link isn’t correct, it does redirect to the proper link.
Even with switch-site-rewrite, I get the same results.
Could someone point out what I am doing wrong here? Thanks.
- The topic ‘[Resolved] [Plugin: Switch Site Rewrite] custom post types and switch_to_blog’ is closed to new replies.