Category: Wordpress
-
Fix – Deprecated: Assigning the return value of new by reference is deprecated in PHP5.3
i recently updated to latest PHP 5 from PHP 4 and my wordpress blog was littered with these errors. I have seen these warnings before with PHP 5. Dont worry! The fix is very easy. Deprecated: Assigning the return value of new by reference is deprecated in /home/topbest/public_html/wp-settings.php on line 472 Deprecated: Assigning the return value of new…
-
10 Useful WordPress User Interface / Dashboard Hacks!
I have been so much fan of wordpress, but one thing wordpress lacks, is a backend user interface (login area for users). If you are presenting this to your client, there are lot of tweaks to do, remove unwanted things in the user interface area. The good news is with just few bits of code…
-
WordPress – how to add custom field when post is published?
It is dead easy to set a custom field to your post, programmatically when the post is published. For example, whenever your post is published, you might want to add a custom field “submitted” and set its value to “1”, when a post is published. Here is how you do it. Call the publish_post hook,…
-
WordPress – Retrieve author/user details from Post ID
Very often in your projects, you want to pull out the author data, given a post id. It is very easy do it in wordpress. It can be accomplished by the_author_meta() function or get_the_author_meta() function.You will need call this function in your theme or plugin, through a hook the_author_meta() –> Outputs the data, just like…
-
How to assign or remove user permissions in WordPress
In wordpress, it is very easy to add and remove permissions to your wordpress registered users. For example, you can set wordpress default user role to “contributor” which means those who register in your website, automatically become contributors and they will be able to post articles in your wordpress “pending review”. In that way you…
-
Published contributor posts cannot be deleted in WordPress!
User roles determine editing and deleting posts by your site users. The main difference between author role and contributor role is Authors -> Create/Edit/Delete posts + Publish Contributors -> Create/Edit/Delete before publishing + Submit for review (cannot Publish) + Cannot Edit/Delete Published posts The main difference is contributors, once posts are published, posts cannot be…
-
30+ Best WordPress Themes for Personal Blogging from Themeforest
I have been a great fan of designers from themeforest who have the knack of making some stunning wordpress themes. As much i love buying wordpress themes from themeforest, it really takes a lot of time to go through thousands of themes, seeing previews and pick the best ones i prefer. 1. Revolution http://www.themeforest.net 2.…
-
40+ Top Premium Magazine Themes for WordPress
I have been a great fan of wordpress magazine themes and i have been searching for these premium news themes all the time to setup my wordpress blog. I have compiled the below listed visually stunning high quality themes and i sincerely believe you could not miss them if you are on a search for…
-
10+ Best Tutorials for WordPress Plugin Writing & Development
Writing a wordresss plugin is no easy task and it always demands you to understand the core functionality and indepth understanding of wordpress. I have found the tutorials listed below very interesting and you will be amazed to know with bit of understanding you can create a wordpress plugin on the fly. Before going through…
-
How to create favicon for wordpress?
To create a favicon, for wordpress, take the image shrink to 16x16px using ifranview or gimp then upload as favicon.ico in your themes folder. If the file already exists then overwrite it. You will need to open header.php and add this line inside the head tags of the html to add your favorite icon. <link…