-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom post type and Custom taxonomy linking problem #65
Comments
Go to the permlinks settings after creating a new post_type. Let me know... |
I updated permalinks settings after registring the post type, permalink structure is set to
|
Strange ... I will try to reproduce that when I'm back at home (next weekend). |
Could you reproduce the problem? |
Yes, after playing a little bit with WordPress 4.0 I had the same issue. |
This should do the trick 8821ef1 Let me know, |
thanks for the fix! |
I think the bug is only fixed in parts: Switching between languages on Custom Post Type archives and Custom Taxonomy term archives works well. But going to another language on a single post view of a custom post type still doesn't work. |
The fix is just for taxonomies where the get_term_url relies on $wp_rewrite. MSLS uses get_permalinks for all post_types where this problem should not exists. Could you double-check this please? |
Ich checked it again in my testing environment, the connection between single views of custom post types (posts and pages work well) seems somehow broken: Sticking to my example above, a single view in the main site is located under I'm using v.1.0.1 of the plugin from github and WP 4.0 |
Is the custom post type projects registered with hierarchical set to true or false? |
Not defined, so defaults to false. Here is my Custom post type and taxonomy setup: |
Maybe this is useful too: http://wordpress.stackexchange.com/questions/133498/remove-multisite-blog-slug-from-specific-custom-post-type ... I will test a little bit more because I'd like to understand if this should be corrected in the core or in the plugin. In my opinion get_permalink should act always in the same manner. |
Thanks for the hint and your effort, but it turns out to add even more complexity to the issue: I added
Same issue occurs on custom taxonomy term archives. |
just curious, any news on this issue? |
I plan to write an add-on (like MslsMenu) that can manage the localized slugs and offers inputs for correcting the $wp_redirect-rules. |
Hi lloc, Thank you for your great work. I have set custom permalink to
I have a
The Msls links correctly the news archive page and the post pages. However I have some custom post types archive pages like
When I look the There may be something I have not done properly ? |
Hi, just checking back on this issue. Is there anything we can do to help solving this? |
Is this still an issue? |
There is a function active in the plugin's options that should show you if there are any translations active. |
Hi, i'm experiencing the issue @hatsumatsu described with the custom taxonomy terms losing links in one direction. And is this an issue with WP core, or should msls handle this? And for now the work-around would be keep using /blog/ on the main site? |
I have a setup of two languages in a Wordpress Multisite environment, based on paths:
Main language:
http://example.com/
Second Language:
http://example.com/en/
When I register a custom post_type width
slug => "my_post_type"
I get the achive pages:Main language:
http://example.com/blog/my_post_type/
Second language:
http://exmaple.com/en/my_post_type/
(Note the /blog/ permalink fragment, that should stay there following the WP Codex http://codex.wordpress.org/Before_You_Create_A_Network )
This results in the language switcher to point me to http://example.com/my_post_type/ when switching from the second language to the main language, missing the
/blog/
part of the URL or to http://example.com/en/blog/my_post_type/. Both throw an 404. Same behavior occurs on custom taxonomy archives.The text was updated successfully, but these errors were encountered: