• Resolved norboo

    (@norboo)


    Hi!
    First of all, amazing plugin!

    I have a custom post type called “news” and I’m displaying the news posts in a carousel through the Loop on author archive.

    $args=array('post_type'=>'news','author'=>$author_id);
    $news_query = new WP_Query($args);
    ----
    <?php while ($news_query->have_posts()) : $news_query->the_post() ;?>

    My questions are:
    1.how can I add the Translation hint for each news post? The hint shows on the default single.php template bu doesn’t show when I use the above query and Loop. Is it possible to add (msls_filter_string() ) in a custom template?
    2. How can I get the translated post ID of the current post. Eg: if I have the post First_News_English, how can I get the First_News_Chinese ID?

    Thanks in advance!
    Norboo

    https://wordpress.org/plugins/multisite-language-switcher/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Post Type query and translation hint’ is closed to new replies.