Category: Wordpress Tutuorials

User role editor access wordpress plugins

This tutorial I am explaining how to give user with role editor access wordpress plugins. Suppose you have installed a plugin but the plugin is not visible to the user with role editor.Here I am showing how to make the plugin accessible to the editor without installing the additional plugins or extensions.

In the wordpress repository you can came across lot of the plugins with set user permissions to different roles.But just for a plugin it is not worth to install additional plugins. In that case please use the following code.

Filter posts by custom fields wp_query

This tutorial I am explaining how to filter posts by custom fields using wp_query. Using wordpress meta_query() parameter we can retrieve the post based on the custom field.

Here I am filtering the post based on the category name and the custom field ‘front_page’ checkbox. Then displaying those filtered posts as blocks in the home page.Please refer the image below.I have created a custom field checkbox and filtering the post based on that from the database.