• Resolved gardene

    (@gardene)


    Hi,

    polylang is great, thanks!

    i have set up a page with three languages (en, ge, uk) and i want to show all english news posts on the ge and uk sites. the following query returns the latest post from the news category and works in all three languages:

    $args = array(  'numberposts' => 1,  'cat' => 31  );
    $posts=get_posts($args);
    if ($posts) {foreach($posts as $post) { setup_postdata($post);
     the_content();
     previous_post_link('<< %link', '%title');
     }
    }

    sadly, the previous post link does only work in english, the original language of the category and the posts. could anyone please help me out?

    btw, How to display the default language post if the translation does not exists? did not work for me because the syllogic plugin doesn’t work for menus.

    any help appreciated, thanks!

    https://www.ads-software.com/plugins/events-manager/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘previous post link disappears on translated page’ is closed to new replies.