• Resolved damienmlbw

    (@damienmlbw)


    Hi,

    I like this plugin but I can’t manage an issue with WPML.

    I want to show all the posts “album” for a taxonomy “my_slug” even if I’m on another language page.
    If I put taxonomy in the shortcode like this :
    [ajax_load_more post_type=”album” taxonomy=”genre_cat” taxonomy_terms=”my_slug” taxonomy_operator=”IN”]

    It show me all the posts in default language but nothing in other language.

    Precision : My posts are meant to be shown for all language and it works if I remove taxonomy in the shortcode.

    Someone have a solution ?

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @damienmlbw.
    A fix for WPML taxonomy and ALM is going to be released shortly.
    Likely early next week.

    Cheers,

    Thread Starter damienmlbw

    (@damienmlbw)

    Ok perfect because I have tried multiple things without success, thank you for your quick answer !

    Plugin Author Darren Cooney

    (@dcooney)

    If you want to try the fix before it’s released.

    Open ajax-load-more.php and replace line #367:

    // WPML fix for category/tag archives
    if ( isset( $_GET['category'] ) && $_GET['category'] ) {
    	unset($_REQUEST['post_id']);
    }

    with:

    // WPML fix for category/tag/taxonomy archives
    if ( (isset( $_GET['category'] ) && $_GET['category']) || (isset($_GET['taxonomy']) && $_GET['taxonomy']) ) {
    	unset($_REQUEST['post_id']);
    }	

    Hope this helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issue with WPML and taxonomy’ is closed to new replies.