Polylang Conflict: unable to save CPT’s in selected language
-
I have Polylang installed together with SportsPress. But whenever I try to add or edit a Match, Calendar, League Table or other custom post types, they are saved under a new language with a number (in my case 86, but that may be different with others).
This issue was reported before in your support section, where you suggested it was probably caused by Polylang.
So, I posted on their support thread trying to find a solution.
However, digging in further I found that the ‘Details’ section has a php function to include CPT-depending input fields, they are called with
<?php foreach ( $taxonomies as $taxonomy ) { sp_taxonomy_field( $taxonomy, $post, true ); } ?>
When I remove this, the ‘Language’ heading and inputs disappear, along with of course all the other (needed) inputs like ‘League’, ‘Season’, etc. But I can edit and save now normally, without a strange language number added.
I think I found the culprit but I’m not sure whether Polylang should prevent being included with the above ‘foreach’ or whether SportsPress should change the call for taxonomies to exclude Polylang’s.
- The topic ‘Polylang Conflict: unable to save CPT’s in selected language’ is closed to new replies.