“edit listing page” in multilingual site (polylang)
-
Hi,
I have a multilingual site with polylang.
The default, english, “add listing page” has url en/add-listing
The corresponding french page (id=87) has url fr/ajouter-listing (contains shortcode[directorist_add_listing]
)
These pages both work fine.But when a user tries to edit a listing in the french frontend, after clicking on the edit button, it is redirected to en/add-listing/edit/465/ which means that he has to edit the listing in english.
I would expect him to be redirected to fr/ajouter-listing/edit/465/
I have already fount out that I can redirect to this link by modifying the get_edit_listing_page_link function like this
if (pll_current_language() == ‘fr’ ){
$page_id = 87;
}else{
$page_id = get_directorist_option(‘add_listing_page’);
}but this page : fr/ajouter-listing/edit/465/ does not exist (error 404)
My question is : does anyone know how or where the en/add-listing/edit/listing-id/ page is generated ? If I know this I can maybe also create the fr/ajouter-listing/edit/listing-id/ page .
Thank you very much in advance for any help,
Mireille
- The topic ‘“edit listing page” in multilingual site (polylang)’ is closed to new replies.