Browsing articles in "Wordpress"
Jul
13

SQL command to reset WordPress password

The quickest and easiest way to change your WordPress admin password. Just enter this SQL command directly on your server.

UPDATE wp_users SET user_pass = MD5('newpassword') WHERE user_login = "admin";
May
9

Add a span around WordPress menu links

I often have the requirement to add an additional element in the standard WordPress menu – usually adding a span around the anchors.

This is very easy to do using the link_before and link_after functions:

<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location'
 => 'primary', 'link_before' => '<span>', 'link_after' => '</span>') ); ?>

Depending on your theme, you’ll probably find this code in header.php.

Nov
16

WordPress error: Could not create directory. /public_html.

If your WordPress automatic update fails with the error:

An error occured while updating WordPress: Could not create directory. /public_html.

1) Log into your server
2) Delete the folder ‘upgrade’ found in the wp-content folder
3) Remake the ‘upgrade’ folder (mkdir upgrade)
4) Change the permissions to 777 (chmod -R 777 upgrade)

Done!

Sponsored links