Why is wordpress forcing https link generation?

Found the problem: on a mamp environment with ssl activated, on installation wordpress setted the database url options with https in front. Just changed theme to http on the remote server. On the local mamp enviroment I had also to restart the server without ssl.

Widget – link to page rather than absolute url

Perhaps this approach will work for you. I like to use PHP Code Widget, which is like a regular Text widget, but one that allows you to use WordPress functions and other PHP in the body. Once you install that widget you could then use one of the WordPress functions like get_page_link() or get_permalink() to … 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

plugin admin subpage title and links in menu not highlited at current page

In the function add_submenu_page() you have to specify a callback function at the end. Like you did it in the 2nd submenu page. You have to add this function to your code! Example: add_submenu_page( ‘my-parent’, ‘Subpage title’, ‘Subpage title’, ‘manage_options’, ‘my_subpage’, ‘subpage-handle’); function subpage-handle() { echo ‘<h1>Subpage title</h1>’; } In this function you can echo … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)