admin管理员组

文章数量:1287489

I use ACF to customize taxonomy term archives pages which are in fact Team member pages. Pages are translated with the help of Polylang.

Problem is : If the member has no related posts, I can access directly the member page, but the translated page is not linked to the language switcher menu. Instead it has been replaced with a link to translated homepage.

I found that this is common behaviour in Polylang. It is programmed to never show translated pages with no posts.

After some research, if found this filter that might be helping. It has been added a while ago but there is no sign of it in the Polylang documentation.

Anybody knows how to use is ?

Thanks

I use ACF to customize taxonomy term archives pages which are in fact Team member pages. Pages are translated with the help of Polylang.

Problem is : If the member has no related posts, I can access directly the member page, but the translated page is not linked to the language switcher menu. Instead it has been replaced with a link to translated homepage.

I found that this is common behaviour in Polylang. It is programmed to never show translated pages with no posts.

After some research, if found this filter that might be helping. It has been added a while ago but there is no sign of it in the Polylang documentation.

Anybody knows how to use is ?

Thanks

Share Improve this question asked Oct 23, 2021 at 11:59 Guillaume GautierGuillaume Gautier 1212 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

Solution given by filter author :

add_filter( 'pll_hide_archive_translation_url', '__return_false' );

本文标签: PolylangDisplay term archive even if no posts