Not working on secondary language category pages with WPML?
-
Hi – I’m having an issue getting this to work with the WPML plugin – my english language posts are working as expected on a category archive page, but the translated versions do not. My translations are all one to one, so it’s not a matter of missing content or missing categories, and a regular WP query returns the posts. I’m echo-ing a shortcode in order to load the posts, should I be doing this another way for WPML to work?
Here’s what I’m using to pull in posts:
$cat = get_category( get_query_var( 'cat' ) ); $category = $cat->slug; $postsNotIn = implode(",", $do_not_duplicate); echo do_shortcode('[ajax_load_more post_type="post" category="'.$category.'" exclude="'.$postsNotIn.'" scroll="false" transition="fade" images_loaded="true" button_label="More Stories" container_type="ul"]');
Any help would be appreciated!
Thanks,
Erin
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Not working on secondary language category pages with WPML?’ is closed to new replies.