I have two sites in my multisite setup – domain.tld
(site A) and domain.tld/lifestyle
(site B). This is my first multisite attempt.
I’ve made a widget that creates a custom post type “latest-news
” with WP_Query
and I call the widget via dynamic_sidebar()
within a page template page-news.php
, which matches up with my static page News. The widget is only enabled on site A.
You can see all files set up here, including my .htaccess
:
https://gist.github.com/e97812f6d5c12d16039d
The posts display correctly, but when I go to view a single post I get a 404.
The URL I get is
domain.tld/blog/latest-news/news-item-1 <-- Does not work
instead of
domain.tld/latest-news/news-item-1 <-- Does work
Now I know that the first site is supposed to have /blog/
in the URL, but this is the first instance where I’ve seen it on my site, all other pages don’t seem to have it.
Does anyone know how to:
- remove the
/blog/
portion without removing it from the Network admin, or - get it to work with the
/blog/
portion?
I’ve reset the permalinks many times, going between my custom /%category%/%postname%/
and default.
Relevant:
http://core.trac.wordpress.org/ticket/12002
/blog/
is added to prevent permalink clashes on the root site of a multisite install. For now you’re going to have to resort to using the network admin and manually wading through the options table modifying it each time you regenerate rewrite rules.http://wordpress.org/support/topic/plugin-remove-blog-slug-for-resolving-multisite-url-confusion#post-1990227