Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-3057

Make p4 page type permalinks compatible with wpml

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Should have Should have
    • None
    • 16
    • Translations

      Change p4 page type (custom taxonomy) to make it's permalinks compatible with wpml.
      Currently when a wpml-enabled p4 site is configured to use p4 page type permalinks (Settings -> Permalinks), the permalinks will work for one language only ( the one that it is set in the admin page, when the user is setting the permalinks).

      Make the proper changes in p4 custom taxonomy, so that the permalinks will work for all languages at all times.

       

      English terms

      Page Type Link Link Type
      press/ index.php?p4-page-type=press other
      publication/ index.php?p4-page-type=publication other
      story/ index.php?p4-page-type=story other

      French terms

      Page Type Link Link Type
      communique-de-presse/ index.php?p4-page-type=communique-de-presse other

       

      Combined terms, should work all together at all times.

      Page Type Link Link Type
      press/ index.php?p4-page-type=press other
      publication/ index.php?p4-page-type=publication other
      story/ index.php?p4-page-type=story other
      communique-de-presse/ index.php?p4-page-type=communique-de-presse other

      PS: This behavior occurs only when p4 page type terms are made 'translatable' in wpml (check attachment)

            kdiamant Kyriakos diamantis
            kdiamant Kyriakos diamantis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: