Development workflow for WordPress using git – issues with plugins and bloginfo(‘wpurl’)

bloginfo/get_bloginfo use site_url to retrieve the wpurl value, site_url provides the site_url filter, so you should be able to use that filter to alter the output. function alter_site_url_wpse_107701($url) { return str_replace(‘/core/wordpress’,’/core’,$url); } add_filter(‘site_url’,’alter_site_url_wpse_107701′); I am guessing a bit at exactly what you need to replace, but I think that is close.

WordPress “Add new tag” button is not working

I’ve had similar problem, maybe it’s not js issue, but XML instead. Check if there are white spaces at end of the files involved ( after the PHP closing tag “?>”) Hope it helps! UPDATE maybe ajax cross domain issue ( 307 Temporary Redirect ) last chance: Set this entries on your .htaccess file SetEnvIf … Read more

PHP mobile redirect Endless loop

Disable the plugin at all and in your function.php add add_action(‘init’, ‘my_mobile_redirect’); function get_first_url_subdir() { return str_replace( str_replace( array(‘http://’, ‘https://’), ”, get_site_url() ), ”, $_SERVER[‘SERVER_NAME’] . $_SERVER[‘REQUEST_URI’]); } function redirect_mobile_with_cookie() { $cookiename=”redirect_mobile_is_a_mobile_device”; if ( isset($_COOKIE[$cookiename]) && ($_COOKIE[$cookiename] == ‘yes’) && strpos(get_first_url_subdir(), ‘/mobile’) !== 0) return true; return false; } function my_mobile_redirect(){ if ( redirect_mobile_with_cookie() ) … Read more

using wp_footer hook in a plugin

Firstly, remove the margin-left CSS property from your html and then try if it works. May be your html is being hidden behind any other html. Or better try this first – Remove the current code from your function and just write any non html thing. Then put a die() or exit() and see if … Read more

How do you add a settings page to another menu?

You’d need to create the top-level menu page, and then the sub-menu after that. Here’s an example: function my_menu() { add_menu_page ( ‘MVC Events’, // $page_title ‘MVC Events’, // $menu_title ‘manage_options’, // $capability ‘mvc-events’, // $menu_slug ‘mvc-options’ // $function ); add_submenu_page ( ‘mvc-events’, // $parent_slug ‘ATB Event Options’, // $page_title ‘ATB Event Options’, // $menu_title … Read more