WordPress Interview Questions And Answers


- Advertisement -

WordPress is opensource content management system where you can add/update/delete contents from admin section. Content may be text, images or videos etc.
Because it is opensource, so you can update the code at free of cost. Wordpress built on PHP/MySQL/javascript (which is also an Open Source) and licensed under GPL. You can create different types of websites whether it is personal / commercial website. Today most of developer prefer wordpress as its easy to install and millions of plugins, themes are available over internet at free of cost & you can do customization.
1. What is WordPress?
WordPress is Content Management System which have robust admin section. From Admin section you can manage the website text/html, image & videos etc. You can easily manage pages & posts. You can set meta title, meta description & meta keywords for each post. It gives you full control over post & pages .
2. Is WordPress opensource?
Yes, WordPress is opensource and you can do customization as per your requirement. WordPress is built in PHP/MySql/javascript/jQuery which is also an opensource.
3. What is current stable version of wordpress?
4.4 released in Dec 2015 For more https://wordpress.org/
4. What kind of website can I build with WordPress?
WordPress was originally developed as a blogging in 2003 but now it has been changed a lot. you can create personal website as well as commercial website.
Following types of websites can be built in wordpress:
• Informative Website
• Personal Website
• Photo Gallery
• Business Website
• E-Commerce website
• Blogging
Today, million of free/paid wordpress themes, wordpress plugin are available which help you to create as per your requirement.
5. From where you can download plugins?
6. From where you can download themes?
7. What is Hooks in wordpress?
Hooks allow user to create WordPress theme or plugin with shortcode without changing the original files.
8. What are the types of hooks in WordPress?
Following are two types of hooks
A) Action hooks: This hooks allow you to insert an additional code.
B) Filter hooks: Filter hooks will only allow you to add a content or text at the end of the post.
9. What are positive aspects of wordpress?
• Easy to install and upgrade the wordpress
• In-built SEO engine and you can manage the URL and meta data as per your requirement.
• Easy to themes and plugins
• Multilingual available in more than 70 languages
• Can be do customization as per requirement
• Lots of free/paid themes/plugin available
10. What is the default prefix of wordpress tables?
wp_ is the prefix for wordpress but you can change at the time of installation.
11. What is WordPress loop?
The Loop is PHP code used by WordPress to display posts.
12. What are the template tags in WordPress?
Template tags is a code that instructs WordPress to “do” or “get” something
13. What are meta tags in wordpress?
Meta-tags are keywords and description used to display website.
14. How to secure your wordpress website?
• Install security plug-ins like WP security
• Change password of super admin OR other admin
• Add security level checks at server level like folder/file permission.
15. How many tables a default WordPress will have?
Following are main table in wordpress:
• wp_commentmeta
• wp_comments
• wp_links
• wp_options
• wp_postmeta
• wp_posts
• wp_terms
• wp_term_relationships
• wp_term_taxonomy
• wp_usermeta
• wp_users
16. How to hide the top admin bar at the frontend in WordPress?
Add following code functions.php

17. How to hide Directory Browsing in WordPress from server?
Add following code in htaccess file

18. How to display custom field in wordpress?

19. How to run database Query in WordPress?

20.What types of hooks in wordpress is used?
          1)Following are Actions hooks:.

          2)Following are Filters hooks .

20.How can you backup your WordPress content?
WordPress admin -> Tools -> Import
21. List most commonly functions used in wordpress?

  • wp_nav_menu() :- Displays a navigation menu.
  • is_page() :- to check if this is page OR NOT, will return boolean value.
  • get_the_excerpt() :- Copy the excerpt of the post into a specified variable.
  • in_category() :- Check if the specified post is assigned to any of the specified categories OR not.
  • the_title():- Displays the title of the post in website.
  • the_content():- Displays the contents of the post in website.

22. Template Files List for development WordPress Theme?
Here is the list of the Theme files recognized by WordPress. Of course, your Theme can contain any other stylesheets, images, or files.
style.css: The main stylesheet. This must be included with your Theme, and it must contain the information header for your Theme.
rtl.css: The rtl stylesheet. This will be included automatically if the website’s text direction is right-to-left. This can be generated using the RTLer plugin.
index.php: The main template. If your Theme provides its own templates, index.php must be present.
comments.php: The comments template.
front-page.php: The front page template.
home.php: The home page template, which is the front page by default. If you use a static front page this is the template for the page with the latest posts.
single.php: The single post template. Used when a single post is queried. For this and all other query templates, index.php is used if the query template is not present.
The single post template used when a single post from a custom post type is queried. For example, single-book.php would be used for displaying single posts from the custom post type named “book”. index.php is used if the query template for the custom post type is not present.
page.php: The page template. Used when an individual Page is queried.
category.php: The category template. Used when a category is queried.
tag.php: The tag template. Used when a tag is queried.
taxonomy.php: The term template. Used when a term in a custom taxonomy is queried.
author.php: The author template. Used when an author is queried.
date.php: The date/time template. Used when a date or time is queried. Year, month, day, hour, minute, second.
archive.php: The archive template. Used when a category, author, or date is queried. Note that this template will be overridden by category.php, author.php, and date.php for their respective query types.
search.php: The search results template. Used when a search is performed.
attachment.php: Attachment template. Used when viewing a single attachment.
image.php: Image attachment template. Used when viewing a single image attachment. If not present, attachment.php will be used.
404.php: The 404 Not Found template. Used when WordPress cannot find a post or page that matches the query.
23.What is plugin in WordPress?
Plugins are ways to extend and add to the functionality that already exists in WordPress. The core of WordPress is designed to be lean and lightweight, to maximize flexibility and minimize code bloat. Plugins then offer custom functions and features so that each user can tailor their site to their specific needs.
24. Essential plugins for WordPress?
Here i am going to share some useful plugins that really help you so much for managing and improving performance as well security of  WordPress.
https://wordpress.org/plugins/wordpress-seo/ (Best SEO Plugin)
https://wordpress.org/plugins/google-sitemap-generator/ (sitemap)
https://wordpress.org/plugins/w3-total-cache/ (caching)
https://wordpress.org/plugins/wp-smushit/ (optimizing image files)
https://wordpress.org/plugins/wp-optimize/ (Simple but effective plugin allows you to extensively clean up your WordPress database and optimize it without doing manual queries: )
25.  prefix of WordPress tables by default?
By default, wp_ is the prefix
26. Plugin for Multi-language features?
WPML Multilingual Plugin.
URL: https://wpml.org/
27. Alternative CMS of WordPress?
Movable Type
Silver Stripe

- Advertisement -

Leave A Reply

Your email address will not be published.