Found and fixed Bug permalink Struktur
-
hi,
i use your plugin for hirachical Categories in CPT′s.
The whole Plugin workes fine but its broken in a special case.the permalink is wrong when the parent term ID is lower as the sub term.
u sort the $terms with usort, that is the reason why its broken.
when u use array_keys and the first entry of the keys array, the Plugin works fine.$keys = array_keys($terms); $term = $terms[$keys[0]]->slug; if ( $parent = $terms[$keys[0]]->parent ) { $term = $this->get_taxonomy_parents( $parent,$taxonomy, false, '/', true ) . $term; }
https://www.ads-software.com/extend/plugins/custom-post-type-permalinks/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Found and fixed Bug permalink Struktur’ is closed to new replies.