Custom posts from custom taxonomy on home page
-
Hello,
First of all I would like to thank the author for this great plugin. Than if you please have any suggestions for these 2 questions, would be very appreciated.
1. I’m showing custom post type from a specific custom taxonomy on my home page using this code:
<?php $args = array( 'posts_per_page' => '6' , 'section' => '?????????', // my custom taxonomy ); query_posts($args); ?> <?php if( is_tax() ) { global $wp_query; $term = $wp_query->get_queried_object(); $title = $term->name; } ?>
My problem is that the posts are always appearing in the default language “AR” and the translation in “IT” or “EN” are not appearing when you switch language.
Is there any way to retrieve custom post type from a specific custom taxonomy and have them translated when you switch language?
2. On the home page I have a slider that is a part of the theme I’m using and this slider is based on custom post type that I already ticked it in the plugin settings to make translatable but when switching languages the slides are not appearing at all or if appearing that would be the default language only.
Any suggestion on how to make the slier works?
I’m using:
WordPress 3.5.1
Polylang 1.0.3Homepage: Non static
Polylang settings:- The language is set from content. Posts, pages, categories and tags urls are not modified.
- Remove /language/ in pretty permalinks
- Hide URL language information for default language
Please note that all the post types and custom taxonomies have languages and translations enabled
Thank you in advance
- The topic ‘Custom posts from custom taxonomy on home page’ is closed to new replies.