WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Custom type posts not found with pretty permalinks urls (6 posts)

  1. bitbusters
    Member
    Posted 2 years ago #

    hi,
    I have observed the following behaviour:
    Polylang 0.6.1
    + Ultimate Taxonomy Manager with Chouby's hack for pll label translation
    + Custom Post Type Permalinks 0.7.5.2
    + Taxonomic SEO Permalink

    Only with default numeric links scheme site.com/?p=123
    and somehow achieved with above combination site.com/?customposttype=the-post-slug
    can custom posts be displayed for languages other than default.
    http://bit.ly/wvyk5L (site.com/?mytaxo=term1) - works
    http://bit.ly/yjiV3k (site.com/language/en/mytaxo_en=term1_en) - does not...

    is there a way just to get the slugs back, even in the ?taxo=post-slug form? cheers and thanks for any hints

    http://wordpress.org/extend/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks to you, I discovered bugs related to custom post types archives. This has just been corrected in the v0.7 development version. Feel free to try it.

    Regarding custom taxonomies, the language code is useless (just as for categories and post tags) as you must set the language in the custom taxonomy edit panel. You cannot set a language to the taxonomy itself but only to a term in the taxonomy.

    So the link should be: site.com/?mytaxo=term1_en

    Finally, I did not test but it is possible that conflicts arise between Polylang, Custom Post Type Permalinks and Taxonomic SEO Permalink as all 3 plugins make modifications to the url rewriting rules.

  3. bitbusters
    Member
    Posted 2 years ago #

    Hi, I haven't test it yet, but I agree, taxonomy terms already carry the info about the language.
    Do you mean, that now it should be working with pretty permalinks and custom taxonomy archives? (the base URL should be site.com/ not site.com/en/ ?)

    It were addressing issues, which decided, that I did not decide to use static homepage
    Single homepage address is best to aggregate traffic. But the homepages in other languages show their URLs in the address bar...
    Then, there's the single address for blog/news page which is not flexible enough for a CMS WordPress implementation.

    And what do You think of my proposal of adding another option to the (default) WordPress permalink schemes?
    I mean something like this:
    site.com/?post=%postname%
    site.com/?category=%category%
    site.com/?my_taxo=%taxo_name%
    Cheers!

  4. Chouby
    Member
    Plugin Author

    Posted 2 years ago #

    Do you mean, that now it should be working with pretty permalinks and custom taxonomy archives? (the base URL should be site.com/ not site.com/en/ ?)

    Yes I hope so.

    And what do You think of my proposal of adding another option to the (default) WordPress permalink schemes?
    I mean something like this:
    site.com/?post=%postname%
    site.com/?category=%category%
    site.com/?my_taxo=%taxo_name%

    I do not understand what you mean. In fact, WordPress default permalinks are like this:
    site.com/?p=%postname%
    site.com/?cat=%category%
    site.com/?my_taxo=%taxo_name%
    provided that you choose my_taxo as query var for your custom taxonomy when you register it.

  5. bitbusters
    Member
    Posted 2 years ago #

    For custom taxonomy - yes, the links are like this indeed.
    (well, at least site.com/?customposttype=%postname% and site.com/?my_taxo=%taxo_name%)
    But for built-in posts pages, categories and tags - no: you have either

    • site.com/?p=123
    • site.com/?cat=321
    • site.com/?page_id=111

    or the folder-like

    • site.com/post-name/
    • site.com/category/cat-name/
    • site.com/parent-page/child-page/

    And for some plugins extending content querying possibilities, and therefore working only with the parametric addressing, not with the folder-like, using slugs as parameters of canonical (base) links would be more optimal, than using IDs.

    Oh, and one more feature request: in page editor, you can easily delete the dependencies by deleting assigned terms in respective language-id fields. In category/tag/taxonomy editor, once you assign a corresponding term in another language, you are stuck. If you have made a mistake, you must delete the term, because you cannot undo ("edit" takes you to editing another language term, not to changing which term of another language should be assigned to this one).

    Anyway, you have seen the website I'm building for a friend of mine: I am facing the problem of dissapearing posts (custom type), I have no idea how can I debug it (when and how were the data removed from the DB, but when I exported data to CSV, the data we were filling for days are gone from db only after displaying the webpages = switching the language a few times) and must now decide a fail-safe simplification (which plugin to exclude)

    What I wanted to achieve was storing price-factors in taxonomy fields, to be able to calculate the service price by multiplying the factors of all terms describing the service. I may give up the custom taxonomies, but I still need to add the fields to categories and tag terms with some plugin.
    So, I can delete Custom Post Type Permalinks & Taxonomic SEO Permalink plugins, but I think, I must leave Ultimate Taxonomy Manager.

    I am very thankful, Chouby for your presence and active support.

    But as a fresh WordPress implementer, I'm already a bit frustrated, as the forums seem not to be as much-attended (or topics I'm stuggling with do not gain much attention) and if the compatilibity is such on an issue, maybe such questions, concern the WordPress plugin/theme model generally...? Greetings & thanks if anyone has any hints.

  6. Chouby
    Member
    Plugin Author

    Posted 2 years ago #

    For permalinks, of course you are right !

    I will see what I can do to unlink categories/tags translations in the future. I will not include this in v0.7 however.

    I do what I can to help. But my own usage of WordPress is very basic and so it happens that users questions are beyond my knowledge...

Topic Closed

This topic has been closed to new replies.