Category: Wordpress
-
WordPress – how to add custom field when post is published?
Last updated:
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
Last updated:
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
Last updated:
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!
Last updated:
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
Last updated:
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
Last updated:
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
Last updated:
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?
Last updated:
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…
-
How to show adsense on specific posts/pages in WordPress?
Last updated:
Very often, you might want show or not show adsense in specific posts or pages. Infact you dont even need to search for wordpress plugins to accomplish the job. The easy way is hack directly into wordpress code. You can open your current wordpress theme and make changes to single.php, category.php accordingly where you want…
-
25 Beautiful looking WordPress News/Magazine themes from Themeforest
Last updated:
i am great fan of themeforest and especially news and magazine themes for wordpress blogs. Honestly there are tonnes of wordpress themes out there and eventually for anyone it takes valuable hours to carefully go through hundreds of themes to pick a handful of your favorite premium themes before placing an order. I have listed…