WordPress Interview Questions HTML KICK

What is WordPress?

WordPress is an online, open source website creation tool written in PHP. But in non-geek speak, it’s probably the easiest and most powerful blogging and website content management system (or CMS) in existence today.

What year was WordPress released?

WordPress was released on May 27, 2003, by its founders, Matt Mullenweg and Mike Little, as a fork of b2/cafelog. The software is released under the GPLv2 (or later) license.

What are minimum requirements to run WordPress?

Disk Space: 1GB+
Web Server: Apache or Nginx.
Database: MySQL version 5.0. 15 or greater or any version of MariaDB.
RAM: 512MB+
PHP: Version 7.3 or greater.
Processor: 1.0GHz+

List some features of WordPress?

  • Simplicity
  • Flexibility
  • Publish with Ease
  • Publishing Tools
  • User Management
  • Media Management
  • Full Standards Compliance
  • Easy Theme System
  • Extend with Plugins
  • Built-in Comments
  • Search Engine Optimized
  • Use WordPress in Your Language
  • Easy Installation and Upgrades
  • Importers
  • Own Your Data
  • Freedom
  • Community
  • Contribute

Note: Drupal Interview Question

What is a plugin in WordPress? List plugin that comes with WordPress.

  • Yoast SEO.
  • Akismet.
  • Jetpack.
  • Contact Form 7.
  • Wordfence Security.
  • WooCommerce.
  • All in One SEO Pack.
  • Google Analytics for WordPress.

What is the difference between wordpress.com and wordpress.org?

The one major difference between WordPress.com and WordPress.org is who’s actually hosting your website. With WordPress.org, YOU host your own blog or website. WordPress.com, on the other hand, takes care of all of the hosting for you. You don’t have to download software, pay for hosting, or manage a web server.

Where is WordPress content stored?

WordPress stores uploaded images and media in the file system, but pages and posts are stored in the MYSQL database. A WordPress installation creates several folders where it stores system files. Plugins, Themes and uploaded media are all stored under the wp_contents folder.

What are the differences between Posts and Pages?

Posts are for timely content. They have a publish date and are displayed in reverse chronological order on your blog page. They’re what you should think of when you hear the term “blog post”. Pages are for static, timeless content.

What are the types of hooks in WP and what are their functions?

Two kinds of hooks exist: action hooks and filter hooks. Action hooks “hook in” actions, and filter hooks “hook in” filters. Filters are passed code or markup by their filter hooks; they modify what they are passed, and must return the result back for WordPress to use in its regular processing.

What is an action hook?

In WordPress theme and development, Hooks are functions that can be applied to an Action or a Filter in WordPress. … Actions are functions performed when a certain event occurs in WordPress. Filters allow you to modify certain functions. Arguments used to hook both filters and actions look the same.

Default tables are in WordPress?

WordPress create 12 table in his database when we install WordPress?

  • wp_options
  • wp_users
  • wp_links
  • wp_commentmeta
  • wp_term_relationships
  • wp_postmeta
  • wp_posts
  • wp_termmeta
  • wp_term_taxonomy
  • wp_usermeta
  • wp_terms
  • wp_comments

How many type of HOOKS in wordpress?

Hooks are a way for one piece of code to interact/modify another piece of code. They make up the foundation for how plugins and themes interact with WordPress Core, but they’re also used extensively by Core itself.

2 type of Hooks in wordpress

  • Actions hook: It allow you to add data or change how WordPress operates. Callback functions for Actions will run at a specific point in in the execution of WordPress, and can perform some kind of a task, like echoing output to the user or inserting something into the database.
  • Filters hook: give you the ability to change data during the execution of WordPress. Callback functions for Filters will accept a variable, modify it, and return it. They are meant to work in an isolated manner, and should never have side effects such as affecting global variables and output.

Note: Joomla Interview questions

How to add google analytics code in wordpress?

Log in to your WordPress dashboard and navigate to Appearance » Editor. Now click the header.php file on the right-hand side below the Templates section.

Add the Tracking Code to the header.php file

Paste the tracking code you just copied from your Analytics profile before the closing </head> tag.

Then click Update File

Explain Files List for development WordPress Theme?


The style. css is a stylesheet (CSS) file required for every WordPress theme. It controls the presentation (visual design and layout) of the website pages.


Enabling Right-to-left (RTL) support in WordPress


At the bottom of the hierarchy is index. php. It will be used to display any content which does not have a more specific template file attached to its name. If a template file ranks higher in the hierarchy, WordPress will automatically use that file in order to display the content in question.


Enable paged comments within WordPress by going to Settings > Discussion , and checking the box “Break comments into pages” . You can enter any number for the “top level comments per page”. Open your comments. php template file and add the following line where you want the comment pagination to appear


php is used to render the blog posts index, whether it is being used as the front page or on separate static page


php is used to render the blog posts index, whether it is being used as the front page or on separate static page.


php and single.php which display a feed of posts and a single post respectively.


Your WordPress theme controls the appearance of your pages by utilizing a template file called page.php


In the folder of your theme (wp-content/themes/theme-name) find the file titled category.php. Open it and copy the contents, so you can use that as a starting point for your new category template.


Used to display archive-type pages for posts in a tag.


Archive. php is Used to display category, date, author, tag, taxonomy, and custom post type archives. Example: Category archives can be displayed using the category.


WordPress will display the authors information using the author.php template


wp-includes/general-template.php: get_the_date(). Retrieve the date on which the post was written.


The archive. php template is used to display monthly, category, tag, author, and other archive pages.


In search.php we’re going to wrap our loop inside an IF statement — in case we don’t have any posts to loop through.


An attachment page ( attachment. php ) is a single post page with the post type of attachment, generated through the creation of an attachment. php. Just like a single post page, which is dedicated to your article, the attachment page provides a dedicated page in attachments in your theme.


WordPress/wp-admin/includes/image. php. * File contains all the administration image manipulation functions. * Crop an Image to a given size.


First thing we need to do is start by creating a custom 404 page template. This can be done by editing the 404.php file in your WordPress theme.

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.

Filters hooks

  1. has_filter()
  2. add_filter()
  3. apply_filters()
  4. apply_filters_ref_array()
  5. current_filter()
  6. remove_filter()
  7. remove_all_filters()

Actions hooks

  1. has_action()
  2. add_action()
  3. do_action()
  4. do_action_ref_array()
  5. did_action()
  6. remove_action()
  7. remove_all_actions()

Leave a Reply

Your email address will not be published. Required fields are marked *

Eweniversally Green