Timeline for Remove the Parent category from the permalink but leave the child category
Current License: CC BY-SA 4.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 8, 2019 at 7:09 | vote | accept | Dennis | ||
Jul 8, 2019 at 7:09 | history | edited | Dennis | CC BY-SA 4.0 |
added 2450 characters in body
|
S Jul 7, 2019 at 2:00 | history | bounty ended | CommunityBot | ||
S Jul 7, 2019 at 2:00 | history | notice removed | CommunityBot | ||
Jul 5, 2019 at 0:00 | history | tweeted | twitter.com/StackWordPress/status/1146931827346681856 | ||
Jul 2, 2019 at 14:09 | answer | added | T.Todua | timeline score: 2 | |
Jul 2, 2019 at 4:35 | comment | added | Dennis | I think that's what's happening too, but if you have your permalink structure set to just /%postname%/, it doesn't differentiate, site.com/page-1 and site.com/post-1 both work. I get what you're saying about changing the category slugs, and I can do that as a last-ish resort / temporary fix but the site's been around for a long time with the category structure I'd mentioned. | |
Jul 1, 2019 at 23:57 | comment | added | Michelle | I've played around and I think the problem is the /%postname%/ type permalink you're wanting for the News category (ie no category slug included) is what's used for WordPress "Pages", so WP isn't finding the single Post correctly. I'm not sure how to get around that. Another workaround (not what you want I know) would be to change just the slug of the News category to be something like 'general' or 'all' or 'stories'... not ideal based on your question but probably more future-proof than messing with WP core behavior. | |
Jul 1, 2019 at 20:58 | comment | added | Dennis | I'd considered that but some things are too broad or don't fit neatly into a sub-category — I've set the top-level category ("News") as the default category (replacing "uncategorized"), which is why I've been looking for parallel questions related to removing "/uncategorized/" from the permalink, but none of those solutions seem to work. | |
Jul 1, 2019 at 20:40 | comment | added | Michelle | I'm sure there's a way to do this, but maybe it would worth considering just removing those top-level categories and moving the posts into the sub-categories? if "News" is already in the URL path, and presumably all the posts in that multisite sub-site are News related, why keep it as a category at all? You could move posts by briefly using a plugin like this: wordpress.org/plugins/bulk-move | |
S Jun 29, 2019 at 0:05 | history | bounty started | Dennis | ||
S Jun 29, 2019 at 0:05 | history | notice added | Dennis | Draw attention | |
Jun 27, 2019 at 0:13 | comment | added | Dennis | What I've tried: among other things I tried a variation on this but the post links without a category still 404 wordpress.stackexchange.com/a/133587/170714 | |
Jun 26, 2019 at 9:00 | review | First posts | |||
Jun 26, 2019 at 10:48 | |||||
Jun 26, 2019 at 8:57 | history | asked | Dennis | CC BY-SA 4.0 |