I tried to add a featured image to the previous post i created but it gave me the following error: Unable to create directory uploads/2014/08. Is its parent directory writable by the server? The same error occurred when i tried…
Category: WordPress
WordPress Key Generator to generate keys for wp-config
WordPress keys and salt in wp-config.php work as an important security measure. These “impossible to guess” and hard to remember and understand keys work as salt for WordPress Cookies data store in your computer for your WordPress website information. These…
WordPress Plugin: Custom Post Menu Sort Order
What is this Custom Post Menu Sort Order plugin? This is a plugin to sort WordPress posts using simple drag and drop method. Custom Post Menu Sort Order plugin has a settings page where one can choose the post type…
Changing database character set
Why to consider changing database character set? Why do i need to do this? As to find a more straight answer please look at the image below, taken from one of my websites built in WordPress:
How to implement breadcrumbs in WordPress website?
Breadcrumbs in WordPress website In order to enhance user experience and site usability using breadcrumbs is an important factor. For SEO perspective it may contribute and benefit in a good way if used on website pages. Assume that a user…
Loading all WordPress posts having or not having a custom meta field
In a scenario one would like to create a custom meta key value pair for a post and save some value into it. Assume of an existing blog with hundred of posts which you want to add a custom field.…
Controlling rel canonical tag in WordPress
I used a forum plugin in wordpress. This plugin provides a shortcode which is placed on a page. Once place this single page is used to shows forum home page, forum category pages and topics pages as well. For the…
How to add an option to WordPress general settings
How to add an option to wordpress general settings page i.e. /wp-admin/options-general.php? The dirty way. Put the following snippet in functions.php file:
Setting content headers to send WordPress HTML email
Just paste the following code snippet to your functions.php file of your current theme. It will force all emails to be sent in HTML format. [php]function set_html_content_type() { return ‘text/html’; } add_filter( ‘wp_mail_content_type’, ‘set_html_content_type’ );[/php] If you want to set…
How to change WordPress default FROM name & email address
Paste the following code into functions.php file of your in-use theme. Don’t forget to put the desired email address in new_mail_from function(line 5) and desired name in new_mail_from_name function (line 8). If you do not know how to do it…