hook that when page is starting to load

Well, when exactly do you consider the page to be “starting to load”? get_header() is typically the first function to fire as the html of a theme is starting to generated. It fires the get_header action. Numerous hooks fire prior to that, at different points, the very earliest being muplugins_loaded I believe. wp_loaded, by the … Read more

Add prefix to link url

Based on this question about retrieving WordPress post slug, you could put together a link like the following: <a href=”http://www.example.com/md/<?php global $post; echo $post->post_name; ?>”>link text</a> Whether that goes to a functioning page or not, I don’t know. It seems like you may want to change rewrite rules in the functions but I’m not sure … Read more

wp_query with cat not working

From what u have written so far it seems menu_categorie is the custom taxonomy. Make sure it is this only. I get a feeling that you have misses “s” from the end of menu_categorie Anyways The argument ‘cat’ => $id you were using is used for default taxonomy i.e category. But in your case you … Read more