• Resolved leanca

    (@leanca)


    I want to translate Custom Archive Descriptions, but Polylang can’t find it. I have to edit the file app/Common/Meta/Description.php and add pll__().

    How can this be fixed differently?

    if ( is_post_type_archive() ) {
    	$postType = get_queried_object();
    	if ( is_a( $postType, 'WP_Post_Type' ) ) {
    		$dynamicOptions = aioseo()->dynamicOptions->noConflict();
    		if ( $dynamicOptions->searchAppearance->archives->has( $postType->name ) ) {
    			return pll__($this->helpers->prepare( aioseo()->dynamicOptions->searchAppearance->archives->{ $postType->name }->metaDescription ));
    				}
    			}
    		}
Viewing 1 replies (of 1 total)
  • Plugin Author arnaudbroes

    (@arnaudbroes)

    Hey @leanca,

    I’m afraid that we don’t know how Polylang works technically behind-the-scenes so I’m afraid we can’t advise you here.

    I recommend that you ask about this in their support forum since they’re in a better place to respond to your question.

    That being said, we are closely monitoring which multilingual plugins are popular among our users, and given enough requests, we might consider looking into adding better support from our end as well.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Archive and Polylang’ is closed to new replies.