דלג על ניווט

Waiting for author

Topic Tags: Compatibility

Overview of the issue

When using AffiliateWP alongside WPML, the Affiliate Area's content fails to display on translated pages.

Workaround

Please, make sure of having a full backup of your site before proceeding.

  • Open your theme's functions file.
  • Add the following code:
    add_filter( 'affwp_affiliate_area_page_id', function( $affiliate_page_id ) {
    	return apply_filters( 'wpml_object_id', $affiliate_page_id, 'page' );
    } );
    

2 תגובות אל “AffiliateWP - Area's content fails to display on translated pages”

  1. This helps me so much. I struggled to find a solution to this issue and I lost days. AffiliateWP don't give any solution and respond verry late to a ticket. The Affiliate Area page in English was working good, but in other languages only the dashboard tabs. AffiliateWP says to use Loco Translate plugin but you have to approve string by string, manually.
    Because I was under attack from Moskva, the website is in maintenance mode and you need to use a bypass link, to access the website.
    https://bespoke-assignments.co.uk/?bypass_code=ByheRlRchuaDjxZP
    Thank you!

השאר מענה

אנא הישארו בנושא והיו מכבדים לאחרים. אם אתה צריך עזרה בבעיות שאינן קשורות לפוסט הזה, השתמש בפורום התמיכה שלנו כדי להתחיל צ'אט או לשלוח כרטיס.

תוכל להשתמש בתגים הבאים:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>