Theme Development, WordPress

How To Add WordPress Custom Field To Any Post

Custom fields are important to elaborate your WordPress post as it enables you to add extra data. WordPress custom field also helps you to add  extra features and functionalities and specific information in individual posts.

By adding custom fields you can edit your WordPress pages and post metadata so you can display whatever you want in your website. By default the custom field option is hidden and disable in WordPress. But you can easily enable or use plugins to refine the feature more useful.

Read More...

Theme Development, WordPress

file_get_contents was found in the file – A complete solution to overcome it

If you are developing a premium theme for WordPress.org or Themeforest, then you must be familiar with the following error “file_get_contents was found in the file”. If you encounter this error message, operations should use the WP_Filesystem method instead of direct PHP filesystem. To remove this warning, you have to use WP_Filesystem instead of file_get_contents to acquire content from a specific file.

Read More...