How to disable WordPress blog folder

To clarify, /blog and /blog/ are the same. The slash is added by the browser to properly structure the URL (best way I can explain it). Your’re trying to access two different pages with the /blog/ slug. In this case, WordPress is overriding the blog link from your existing website and showing content from there. … Read more

get_adjacent_post by language

To use get_adjacent_post you have exclude all the term id of that specific taxonomy, For polylang your texonomy is language, First you have retrieve all term ids of indivual languages, and then exclude all of them other than the one you want. global $post; $post_id = [XXXX]; // any specific post id $post = get_post($post_id); … Read more