WordPress Interview Questions
1) What is WordPress?
WordPress is an Open Source Content Management System (CMS) and a blogging tool that is based on PHP and MySQL. It is free of cost and you can use it for any type of personal and commercial website.
Wordpress is the most popular blogging system and used for more than 60 million websites. It is licensed under GPL.
2) Is a website on WordPress safe and secure?
WordPress is safe and secure to operate. You need not to worry about anything but still it is suggested to update your site with latest WordPress version to avoid hacking.
3) Is there any limitation for WordPress website?
WordPress can be used for e-commerce sites, membership sites, photo galleries and any other type of site you can think of. There are no such limitations for WordPress.
4) What is the latest version of WordPress?
The latest version of WordPress is 4.6 released on Aug 16, 2016.
5) Is it possible to SEO a WordPress site to show it on Google first page?
WordPress has an in-built SEO search engine benefit. You can also have an additional plug-in in WordPress to help with SEO and rank on a popular search engine like Google.
6) What is the difference between character 23 and x23?
Here 23 specifies the octal 23 and x23 specifies the hex 23.
7) What are hooks? Define different types of hooks in WordPress.
Hooks enable users to create WordPress themes or plug-ins with shortcode without changing the original files.
There are two types of hooks:
Action hooks: Action hooks facilitate you to insert an additional code from an outside resource.
Filter hooks: Filter hooks facilitate you to add a content or text at the end of the post.
8) What are the most interesting and useful features of WordPress?
These are the features which make WordPress very popular:
- Easy to install and upgrade
- In-built SEO engine
- Free and easy theme selection
- Flexibility
- Multilingual- available in more than 70 languages
- Own data- no unwanted advert on your website
- Flexibility and Easy publishing option
9) Why does WordPress use MySQL?
Following are the reasons to use MySQL with WordPress:
- Open source
- Extremely fast
- Widely available database server
- Supported by low cost Linux hosting
10) How many tables are there in WordPress by default?
At present version, there are about 11 tables in WordPress by default. You can check the number of tables in WordPress by phpMyAdmin.
- wp_commentmeta
- wp_comments
- wp_links
- wp_options
- wp_postmeta
- wp_posts
- wp_terms
- wp_term_relationships
- wp_term_taxonomy
- wp_usermeta
- wp_users
Note: The number of tables may be changed with successive releases.
11) What is by default prefix of WordPress tables?
The wp_ is by default prefix of WordPress tables.
12) In WordPress objects are passed by value or by reference.
In WordPress, all objects are passed by value.
13) How can you call a constructor for a parent class?
You can call a constructor for a parent class by this way:
14) In which cases WordPress is not suitable for a website?
Following are some situations when WordPress is not recommended.
- If the client is working on non-CMS based project.
- For complex and innovative e-commerce sites.
- Sites which require custom scripting solutions.
15) Is WordPress the best CMS or any other CMS is better than WordPress?
No doubt WordPress is good CMS but Drupal and Joomla are considered better CMS than WordPress to work with.
16) Which is considered more secured wordpress.com or wordpress.org?
Wordpress.com is relatively more secure than wordpress.org because they limit the themes and does not allow plugin's installation. However, security depends on the hosting company of your website and also what steps they are taking to prevent the security problems.
17) Explain posts in WordPress.
Posts allow you to write a blog and post it on your site. They are listed in reverse chronological order in front page of your blog.
18) Explain pages in WordPress.
Pages are different from posts. They are static and they do not change often. You can add pages containing information about you and your site.
19) What is the difference between WordPress posts and pages?
WordPress posts are content published on a site with an exact date and time. They can be categorized in a systematic way on the basis of category and tags. They are listed in a reverse chronological order on a site.
WordPress pages are static and does not change frequently such as contact us, about us, privacy policy, etc. They don?t have date and time published, however, database stores their published date and time.
20) What is loop in WordPress?
WordPress uses PHP codes to display posts. This PHP code is known as loop.
21) How can you disable WordPress comment?
You can disable the WordPress comment on dashboard. On the dashboard, under the options- discussion you will find "Allow people to post comment". Uncheck this to disable comment.
22) How can you edit a WordPress comment?
You can edit WordPress comment using dashboard. From dashboard, under the Comments option, select edit to edit a comment.
23) Explain moderate comment in WordPress.
Comments by visitors on a post are not published directly unless it is approved by the admin. This is called moderation. To change comment moderation setting, select Settings option from the dashboard and check the option "Comment must be manually approved".
24) How to allow only registered users to comment in WordPress?
If you don't want a comment from a new user on your blog, check the option "Users must be registered and logged in to comment" from Discussions under the Settings option.
25) Explain Avatar and Gravatar in WordPress.
Word Avatar is used for user's profile image in online communications. Gravatar is a web based service which allows its users to use Avatar image.
26) How can you handle the situation if your WordPress site is hacked?
You should follow these steps:
- Install security plug-ins like WP security
- Re-install the latest version of WordPress
- Change password and user-ids for all your users
- Check your themes and plug-ins are up to date
27) Explain Categories in WordPress.
Categories allow a user to divide its content into different sections. Different topics publishing in a single website can be divided into different categories. It tells a reader what a post is about and they can easily find their content from a lot.
28) How to convert a category into tag?
WordPress provides you an option to change category into tag and tag into category. For this you need to install Categories and Tags Converter from Import option under Tools section.
29) Explain Tags in WordPress.
With the help of tags, similar posts can be grouped together. Hence, it makes easier for the users to search a particular post. Tags are similar to categories but still different.
30) Explain difference between WordPress Categories and Tags.
WordPress Categories are broad-ranging. It helps a user to identify what a blog is about. It is possible for a post to have more than one category. A post must have at least one category.
WordPress Tags are like categories but they are used to describe a post more specifically. Tags are not necessary for every post.
31) How many types of users WordPress have?
WordPress user role determines access permission to the users of a WordPress site.
- Administrator: They have full rights over a site.
- Editor: They deal with content section of a site.
- Author: They only deal with their own posts. They can delete their post even after publishing.
- Contributor: A contributor doesn't have right to publish their post or page. They need to send it to the administrator for review.
- Subscriber: Users which are subscribed to your site can log in and update their profile.
- Follower: They don't have any right. They can only read and comment on your post.
- Viewer: They can only read and comment on a post.
32) What are WordPress Themes?
With the help of WordPress theme, you can design the layout and appearance of your website in the front-end.
More details...33) How will you select a WordPress theme?
WordPress theme should complement your site. It can be either free or paid. An ideal theme should have qualities like simple, responsive, supports plugins, SEO friendly, etc.
34) What is the difference between custom themes and normal themes?
Custom themes are very easy to format. You don't need much technical knowledge to change in the coding part. Custom theme allows for SEO search, but with an SEO plugin available it would not make much difference to normal theme.
35) What is the difference between free and paid WordPress theme?
Free and premium WordPress themes are different in a lot of ways. In free themes you have to compromise with the quality as many other sites will be using the same theme. Problems in premium themes will be solved more quickly than in free themes.
36) What are WordPress Plugins?
WordPress plugins are programs written in PHP scripting language that extends the functionality or add some new features to a WordPress site. They provide additional functions to an application.
37) When will you not be able to see the plugin menu in a WordPress site?
When a site is hosted on free wrodpress.com, plugin menu will not appear. Also if you don't have an account for the administrator level, you can't see the plugin menu.
38) What are the plugins you can use to create contact form in WordPress?
You can use plug-in like Gravity forms or a free plugin contact form 7 to create a contact form in WordPress.
39) Explain difference between WordPress Themes and Plugins.
A theme is an external effect like a website's presentation and designing. Whereas, a plugin is the interior effect which add or remove some functions to a site.
You can customize some functionality in themes instead of installing plugin but themes can't be replaced by plugins.
40) How to update a WordPress site?
You should always update your site to the latest version of WordPress. Whenever there is a new WordPress version, you will receive an update message on your admin screen.
There are two methods to update a WordPress site:
- One-click update
- Manually update
41) How to improve security in a WordPress site.
Security in a WordPress site is must as these websites are favorite targets for hackers. A site can't be perfectly secured but one can at least reduce the risk by applying different security measures.
Some of the measures to secure a WordPress site are given below:
- Choosing a host
- Strong password
- 2 step login authentication
- Limit number of login attempts
- Use SSL
- Keep site updated
42) How to reset password in WordPress?
If you forget or lost the password of your account, WordPress gives you an option to reset it through different methods.
There are four ways to reset WordPress password:
- Change password from dashboard
- Reset password via email
- Manually reset password through database via PhpMyAdmin
- Using emergency password reset script
43) How to optimize WordPress site performance?
Optimization increases speed of your site and gives the best possible outcome. It improves the ranking of a site.
There are a lot of tricks to optimize a WordPress site. Some of them are given below:
- Use CDN
- Use a caching plugin
- Use a simple theme/framework
- Keep site updated
- Split long posts into smaller pages
44) What are template tags in WordPress?
Template tags are used within themes to retrieve content from your database. It is a piece of code that tells WordPress to get something from the database.
45) What are meta-tags in WordPress?
Meta-tags are keyword and description used to display website or page information.
46) What are custom fields in WordPress?
Custom fields are also called post meta. It is a feature through which users can add arbitrary information when writing a post. These meta data can be displayed using template tags in WordPress themes.

No comments: