Tag Info

Hot answers tagged

2

Try to disable the plugins via the database running this query in your MySQL: UPDATE wp_options SET option_value = 'a:0:{}' WHERE option_name = 'active_plugins'; Also, try to enable error debugging in your wp-config.php file adding this line: define( 'WP_DEBUG', true ); Also, could you paste a copy of your .htaccess file?


2

Was a bug in the core, I published the ticket ( https://core.trac.wordpress.org/ticket/32310 ) and is added for the next version 4.2.3. In this version the code change the collation of some tables and this works fine if the change is fast. But in big tables this change take time, hive a timeout in the upgrade process and can't continue, so is a loop. In ...


2

The best way to figure out what's happening for a problem like this is to go to the source. Literally. Take a look in wp-login.php and look for an action that fires before any HTML rendering happens. The hook you're looking for is login_init. Add a callback to it, check if the user is logged in and redirect them if so. The only other snag here is that ...


1

If the screen is less than 782px, "Screen Options" are hidden. @media screen and (max-width: 782px) { #collapse-menu, #screen-meta, #screen-meta-links, .post-format-select { display: none!important; } }


1

If I am right, a plugin might be causing the issue. To detect the cause of problem, you must know when did this problem started occuring? Did you start after you upgraded WordPress, or after you activated a certain plugin? Also if you're using WordPress version 3.5, that version does have this issue. Check here, it should have been fixed in 3.5.1. What ...


1

You could use postbox_classes filter as follow: add_filter( 'postbox_classes_dashboard_widget2', function ( $classes ) { // $classes is an array; add your custom classes to the array $classes[] = 'my-class'; return $classes; } );


1

You can check if the current page is login or not using $pagenow global variable and the wp_redirect() to custom URL within the condition is_user_logged_in function redirect_logged_in_user() { if( is_user_logged_in ) { wp_redirect('http://customurl'); } } global $pagenow; if( $pagenow == 'wp-login.php') redirect_logged_in_user();


1

The text you are referring to is located in here: wp-admin/nav-menus.php. But we will not edit directly. We will use functions.php for the convenience of preserving the changes after an upgrade. Use the following code in functions.php add_filter( 'gettext', 'wps_translate_words_array' ); add_filter( 'ngettext', 'wps_translate_words_array' ); function ...


1

The problem is that you are enqueue the CSS file of your theme outside any of the recommended actions. If you want it to be added only in frontend, you should use wp_enqueue_scripts action: add_action( 'wp_enqueue_scripts', function() { wp_register_style( 'mainstyle', get_stylesheet_uri()); wp_enqueue_style( 'mainstyle', get_stylesheet_uri()); });



Only top voted, non community-wiki answers of a minimum length are eligible