WordPress Interview Questions and Answers

WordPress Interview Questions and Answers

1. What is WordPress?

Ans. Word press is a best Open Source CMS which allows it to be used free of cost. You can use it on any personal or commercial website without having to pay a single penny for it. It is built on PHP/MySQL (which is again Open Source) and licensed under GPL.

2. How safe is a website on WordPress?

Ans. The word press is safe to operate, but still, it is suggested to keep updating with the latest version of WordPress to avoid hacking.

3. From SEO point of view is WordPress helpful? Will it show the website on Google?

Ans. It is one of the benefits of using WordPress; it has inbuilt SEO search engine. Also, you can have an additional plug-in in WordPress to help with SEO and rank on a popular search engine like Google.

4. What are the types of hooks in WordPress and mention their functions?

Ans. There are two types of hooks 1) Action hooks 2) Filter hooksHooks allow a user to create WordPress theme or plugin with shortcode without changing the original files. Action hooks allow you to insert an additional code from an outside resource, whereas, Filter hooks will only allow you to add content or text at the end of the post.

5. What do you mean by a custom field in WordPress?

Ans. The custom field is a meta-data that allows you to store arbitrary information in the WordPress post. Through custom field, extra information can be added to the post.

6. What are the positive aspects of WordPress?

Ans. Few positive aspects of WordPress are
1-Easy installation and upgrade
2-In-built SEO engine
3-Easy theme system
4-Flexibility
5-Multilingual- available in more than 70 languages
6-Own data- no unwanted advert on your website
7-Flexibility and Easy publishing option

7. What are the rules that you have to follow for WordPress plugin development?

Ans. 1-Create a unique name
2-Create the plugin’s folder
3-Create a sub-folder for PHP files, translations, and assets
4-Create the main plug-in file and fill in the header information
5-Create activation and de-activation functions
6-Create an uninstall script
7-Create a readme.txt file
8-To detect paths to plugin file use proper constants and functions

8. Why does WordPress use MySQL?

Ans. MySQL is widely available database server and is extremely fast. It is an open source, and it is available at no cost also it is supported by many low-cost Linux hosts so its easy for anyone to host their website.

9. Is it possible to rename the WordPress folder?

Ans. Yes, it is possible to rename the WordPress folder. If WordPress is already installed, you have to log in to the weblog as the administrator and then change the settingsWordPress address (URI) :Blog address( URI) :After making the changes, you can rename the folder or directory with the WordPress file in it.

10. How many tables are there in WordPress by default?

Ans. There are about 11 tables in WordPress by default. Note: With succeeding releases of WordPress this number will change. You need to check phpMyAdmin to determine the number of tables in a vanilla version of latest WordPress installation.

11. At what instance you get locked out of your WordPress admin and look at your website as a blank screen?

Ans. This would likely happen when you have pasted the code from a website with wrong formats, also when you have pasted the code in an incorrect location. It may also happen when your IP is banned

12. What are the plugins you can use to create a contact form in WordPress?

Ans. To create a contact form in WordPress, you can use a plugin like Gravity forms or also you can use a free plugin contact form 7.

13. Why does widget not show up in the sidebar?

Ans. While using a widget, you have to ensure whether your theme supports the widget and if it does then, it must show the sidebar. If in any case if it happens that you don’t see the sidebar, then it might be missing the “function.php” file or file similar to that. This can also happen if you have forgotten to save the changes in the widget or to refresh the older display of the page.

14. Is there any limitation for using WordPress?

Ans. No, there is no limitation for using WordPress. WordPress can be used for innumerable purpose membership site, e-commerce site, photo-gallery and many more.

15. Why is wordpress.com considered more secure than wordpress.org?

Ans. WordPress.com is considered more secure than wordpress.org because they limit the themes and also does not allow installing plugins. However, the security is more dependable on how the hosting company is hosting your website(wordpress.org) & also what are the steps they are taking to prevent the security problems.

16. In what case we cannot recommend WordPress to our client?

Ans. WordPress.com is considered more secure than wordpress.org because they limit the themes and also does not allow installing plugins. However, the security is more dependable on how the hosting company is hosting your website(wordpress.org) & also what are the steps they are taking to prevent the security problems.

17. What are the essential features you look for a theme?

Ans. Theme selection differs according to the requirement, but an ideal theme would be something that would not restrict to use the number of pages, plugins or static homepage.

18. How can you create a static page with WordPress?

Ans. To create a static page in WordPress, in the page section you have to upload a PHP file to the server in the theme folder, and then select that as your template. It allows you to add any page and look that you wanted for your blog and it will remain static.

19. What should one use for plugin development — custom post types or custom database tables?

Ans. There is no specific preference for plugin development; it depends on what type of plugin’s one has to develop. Though few recommend custom post type, as it has few benefits compared to a custom database table.

20. What is a Child Theme?

Ans. The child theme is an extension of the parent theme. If you make changes to the main/parent theme, any update will undo the changes. With a child theme, the customizations are preserved on an update.

1. What is WordPress?

Ans. Word press is a best Open Source CMS which allows it to be used free of cost. You can use it on any personal or commercial website without having to pay a single penny for it. It is built on PHP/MySQL (which is again Open Source) and licensed under GPL.

2. How safe is a website on WordPress?

Ans. The word press is safe to operate, but still, it is suggested to keep updating with the latest version of WordPress to avoid hacking.

3. From SEO point of view is WordPress helpful? Will it show the website on Google?

Ans. It is one of the benefits of using WordPress; it has inbuilt SEO search engine. Also, you can have an additional plug-in in WordPress to help with SEO and rank on a popular search engine like Google.

4. What are the types of hooks in WordPress and mention their functions?

Ans. There are two types of hooks 1) Action hooks 2) Filter hooksHooks allow a user to create WordPress theme or plugin with shortcode without changing the original files. Action hooks allow you to insert an additional code from an outside resource, whereas, Filter hooks will only allow you to add content or text at the end of the post.

5. What do you mean by a custom field in WordPress?

Ans. The custom field is a meta-data that allows you to store arbitrary information in the WordPress post. Through custom field, extra information can be added to the post.

6. What are the positive aspects of WordPress?

Ans. Few positive aspects of WordPress are
1-Easy installation and upgrade
2-In-built SEO engine
3-Easy theme system
4-Flexibility
5-Multilingual- available in more than 70 languages
6-Own data- no unwanted advert on your website
7-Flexibility and Easy publishing option

7. What are the rules that you have to follow for WordPress plugin development?

Ans. 1-Create a unique name
2-Create the plugin’s folder
3-Create a sub-folder for PHP files, translations, and assets
4-Create the main plug-in file and fill in the header information
5-Create activation and de-activation functions
6-Create an uninstall script
7-Create a readme.txt file
8-To detect paths to plugin file use proper constants and functions

8. Why does WordPress use MySQL?

Ans. MySQL is widely available database server and is extremely fast. It is an open source, and it is available at no cost also it is supported by many low-cost Linux hosts so its easy for anyone to host their website.

9. Is it possible to rename the WordPress folder?

Ans. Yes, it is possible to rename the WordPress folder. If WordPress is already installed, you have to log in to the weblog as the administrator and then change the settingsWordPress address (URI) :Blog address( URI) :After making the changes, you can rename the folder or directory with the WordPress file in it.

10. How many tables are there in WordPress by default?

Ans. There are about 11 tables in WordPress by default. Note: With succeeding releases of WordPress this number will change. You need to check phpMyAdmin to determine the number of tables in a vanilla version of latest WordPress installation.

11. At what instance you get locked out of your WordPress admin and look at your website as a blank screen?

Ans. This would likely happen when you have pasted the code from a website with wrong formats, also when you have pasted the code in an incorrect location. It may also happen when your IP is banned

12. What are the plugins you can use to create a contact form in WordPress?

Ans. To create a contact form in WordPress, you can use a plugin like Gravity forms or also you can use a free plugin contact form 7.

13. Why does widget not show up in the sidebar?

Ans. While using a widget, you have to ensure whether your theme supports the widget and if it does then, it must show the sidebar. If in any case if it happens that you don’t see the sidebar, then it might be missing the “function.php” file or file similar to that. This can also happen if you have forgotten to save the changes in the widget or to refresh the older display of the page.

14. Is there any limitation for using WordPress?

Ans. No, there is no limitation for using WordPress. WordPress can be used for innumerable purpose membership site, e-commerce site, photo-gallery and many more.

15. Why is wordpress.com considered more secure than wordpress.org?

Ans. WordPress.com is considered more secure than wordpress.org because they limit the themes and also does not allow installing plugins. However, the security is more dependable on how the hosting company is hosting your website(wordpress.org) & also what are the steps they are taking to prevent the security problems.

16. In what case we cannot recommend WordPress to our client?

Ans. WordPress.com is considered more secure than wordpress.org because they limit the themes and also does not allow installing plugins. However, the security is more dependable on how the hosting company is hosting your website(wordpress.org) & also what are the steps they are taking to prevent the security problems.

17. What are the essential features you look for a theme?

Ans. Theme selection differs according to the requirement, but an ideal theme would be something that would not restrict to use the number of pages, plugins or static homepage.

18. How can you create a static page with WordPress?

Ans. To create a static page in WordPress, in the page section you have to upload a PHP file to the server in the theme folder, and then select that as your template. It allows you to add any page and look that you wanted for your blog and it will remain static.

19. What should one use for plugin development — custom post types or custom database tables?

Ans. There is no specific preference for plugin development; it depends on what type of plugin’s one has to develop. Though few recommend custom post type, as it has few benefits compared to a custom database table.

20. What is a Child Theme?

Ans. The child theme is an extension of the parent theme. If you make changes to the main/parent theme, any update will undo the changes. With a child theme, the customizations are preserved on an update.