WordPress Main Menu – Hide ‘Home’ link on homepage only

If you only want to hide it to the users, i suggest using the following CSS: Explanation: WordPress generates several classes for the body tag. The home class is used to hide all links with the title Home on the homepage. Working Example (code taken from the default theme): http://jsfiddle.net/yJVyK/1/ Note: The attribute selector does … Read more

WordPress localhost not working

I am new to wordpress so please assist. I know there have been some questions regarding this already there but it did not work hence asking for assistance I have cloned a live repo and saved it in my WAMP www folder which I normally use for other php sites and refer it using localhost/project/ … Read more

With “magic quotes” disabled, why does PHP/WordPress continue to auto-escape my POST data?

I think I found it. Problem (bug): http://core.trac.wordpress.org/ticket/18322 Solution: http://codex.wordpress.org/Function_Reference/stripslashes_deep Note: As suggested by @Alexandar O’Mara, you might want to reconsider overwriting the superglobals like this. If it’s appropriate for your situation, for example, you might just “strip locally” using an alternative like $post = array_map(‘stripslashes_deep’, $_POST); Also see @quickshiftin’s excellent answer.