Category: Wordpress Tutuorials

Insert udpate wordpress post programmatically

This tutorial explains how to insert update wordpress post programmatically. Here it explains how to read data from the CSV file and bulk import content and create the wordpress posts programmatically.

Suppose you are trying add bulk content and images to the wordpress site sometimes it is not practical to create the post from the wordpress admin area. In that case the external script plays a good role.

User role editor access wordpress plugins

This tutorial I am explaining how to give user 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.