1. What is WordPress?
Answer: WordPress is an Open Source Content Management System (CMS) and a blogging tool, based on PHP and MySQL. It is free of cost, and you can use it for any 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. List some features of WordPress
Answer: The features of WordPress are
- User Management
- Media Management
- Theme System
- Extend with Plugins
- Search Engine Optimized
- Multilingual
- Importers
3. Is there any limitation on the WordPress website?
Answer: WordPress can be used for e-commerce sites, membership sites, photo galleries, and any other type of site you can think of. Following are some disadvantages of WordPress:
- Using several plugins can make the website heavy to load and run.
- PHP knowledge is required to make modifications or changes in the WordPress website.
- Sometimes software needs to be updated to keep WordPress up-to-date with the current browsers and mobile devices. Updating the WordPress version leads to loss of data, so a backup copy of the website is required.
- Modifying and formatting the graphic images and tables is difficult.
4. What are the system requirements for installing WordPress?
Answer: Here you go
Database – MySQL 5.0 +
- Web Server –
- WAMP (Windows)
- LAMP (Linux)
- XAMPP (Multi-platform)
- MAMP (Macintosh)
- Operating System – Cross-platform
- Browser Support – IE (Internet Explorer 8+), Firefox, Google Chrome, Safari, Opera
- PHP Compatibility – PHP 5.2+
5. What are Importers?
Answer: It allows importing data in the form of posts. It imports custom files, comments, post pages, and tags.
6. What are the types of hooks in WordPress and mention their functions?
Answer: There are two types of hooks 1) Action hooks 2) Filter hooks
Hooks allow a user to create a WordPress theme or plugin with a 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.
7. Why does WordPress use MySQL?
Answer: Following are the reasons to use MySQL with WordPress:
- Open-source
- Extremely fast
- A widely available database server
- Supported by low-cost Linux hosting
8. How many tables are there in WordPress by default?
Answer: In the 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
9. What do you mean by a custom field in WordPress?
Answer: The custom field is a meta-data that allows you to store arbitrary information in the WordPress post. Through the custom field, extra information can be added to the post.
10. What are the positive aspects of WordPress?
Answer: Few positive aspects of WordPress are
- Easy installation and upgrade
- In-built SEO engine
- Easy theme system
- Flexibility
- Multilingual- available in more than 70 languages
- Own data- no unwanted advert on your website
- Flexibility and Easy publishing option
11. How to get a website URL in WordPress?
Answer: get_site_url( int $blog_id = null, string $path = ”, string $scheme = null )
All parameters are optional. This command is used to retrieve URLs for a given website with WP application files accessible.
12. What is a Content Management System (CMS)? Discuss the features, advantages, disadvantages?
Answer: The Content Management System (CMS) is a software that stores all the data such as text, photos, music, documents, etc. and is made available on your website. It helps in editing, publishing, and modifying the content of the website.
WordPress was initially released on 27th May 2003 by Matt Mullenweg and Mike Little. WordPress was announced as an open-source in October 2009.
Features
- User Management − It allows managing the user information such as changing the role of the users to (subscriber, contributor, author, editor, or administrator), create or delete the user, change the password and user information. The main role of the user manager is Authentication.
- Media Management − It is the tool for managing the media files and folders, in which you can easily upload, organize, and manage the media files on your website.
- Theme System − It allows modifying the site view and functionality. It includes images, stylesheet, template files, and custom pages.
- Extend with Plugins − Several plugins are available which provide custom functions and features according to the user’s need.
- Search Engine Optimization − It provides several search engine optimization (SEO) tools that make on-site SEO simple.
- Multilingual − It allows translating the entire content into the language preferred by the user.
- Importers − It allows importing data in the form of posts. It imports custom files, comments, post pages, and tags.
Advantages
- It is an open-source platform and available for free.
- CSS files can be modified according to the design as per users’ needs.
- There are many plugins and templates available for free. Users can customize the various plugins as per their needs.
- It is very easy to edit the content as it uses WYSIWYG editor (What You See Is What You Get is a user interface that allows the user to directly manipulate the layout of the document without having a layout command).
- Media files can be uploaded easily and quickly.
- It offers several SEO tools that make on-site SEO simple.
- Customization is easy according to the user’s needs.
- It allows creating different roles for users for websites such as admin, author, editor, and contributor.
Disadvantages
- Using several plugins can make the website heavy to load and run.
- PHP knowledge is required to make modifications or changes in the WordPress website.
- Sometimes software needs to be updated to keep WordPress up-to-date with the current browsers and mobile devices. Updating the WordPress version leads to loss of data, so a backup copy of the website is required.
- Modifying and formatting the graphic images and tables is difficult.
13. Which licensing authority is responsible for WordPress?
Answer: WordPress is licensed under GPLv2 (GNU General Public License) which makes it free and open-source software. Each copy of WordPress has a licensed copy with it.
14. How to create a custom Post In WordPress?
Answer: Custom posts types in WordPress are the new post types that developers can create. You can add a custom post type via the register_post_type() function, which allows the developers to define the new post type by labels, features, and availability.
Or we can also create custom post types with the help of plugins.
- Custom Post Type UI
- Custom Field
15. Which licensing authority is responsible for WordPress?
Answer: WordPress is licensed under GPLv2 (GNU General Public License) which makes it free and open-source software. Each copy of WordPress has a licensed copy with it.
16. How to Backup WordPress root Files?
Answer: There are many files in your WordPress directory. These files can be downloaded back from wordpress.org site. Some of them can be retrieved back but some can’t.
The wp-content directory contains all your installed themes and plugins including all your media files like images, audio, or video files that you uploaded on your site. Hence, it makes it personal and unique.
The wp-config.php file consists of your Database and other personnel options which make it also a unique file.
Both the above files can’t be replaced by other default files. Hence, they need to be backed up.
17. How to take the backup of a WordPress site?
Answer: A backup is just a copy of your original site through which you can restore your original site if anything goes wrong. Keeping a backup on the safe side is always advisable.
A site is generally made up of two parts. One is all the installed themes/plugins, media and other is Database which stores all your blogs, posts, and comments. Without files, there is no site, and without the database, there is no data. Hence both of them are important and need a backup.
18. What are custom fields in WordPress?
Answer: Custom fields are also called post meta. It is a feature through which users can add arbitrary information when writing a post. These metadata can be displayed using template tags in WordPress themes.
19. How to reset password in WordPress?
Answer: If you forget or lose the password of your account, WordPress gives you an option to reset it through different methods.
There are four ways to reset the WordPress password:
- Change password from the dashboard
- Reset password via email
- Manually reset the password through database via PhpMyAdmin
- Using emergency password reset script
20. In WordPress, what do you mean by a child theme?
Answer: The extension of any parent theme present in WordPress is defined as a child theme. Any update to undo the changes in the child theme, if we make changes to the parent theme. While developers work on a child theme, the customizations and changes will be preserved on an update.
21. Explain the difference between WordPress Categories and Tags.
Answer: WordPress Categories are broad-ranging. It helps a user to identify a blog. A post can 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.
22. How can you edit a WordPress comment?
Answer: You can edit WordPress comments using the dashboard. From the panel, under the Comments option, select edit to edit a comment.
23. Which is considered more secure wordpress.com or wordpress.org?
Answer: WordPress.com is relatively more secure than wordpress.org because they limit the themes and do not allow the plugin’s installation. However, security depends on the hosting company of your website and also what steps they are taking to prevent security problems.
24. What is a WYSIWYG Editor?
Answer: WYSIWYG Editor is similar to a word processor interface where we can edit the contents of the article.
25. What is the WordPress Dashboard?
Answer: The WordPress Dashboard is a first screen that will be seen when you log into the administration area of your blog which will display an overview of the website. It is a collection of gadgets that provide information and give a glance overview of what’s happening with your blog. You can customize your needs by using some quick links such as writing a quick draft, replying to the latest comment, etc.
26. How to change the default length of the excerpt in WordPress?
Answer: To change the default length of the excerpt in WordPress, we have to insert the below-mentioned syntax to the functions.php file and edit the amount of the words that we desire to be displayed in our excerpts.
add_filter( ‘excerpt_length’, function($length) {
return X;
} );
Here above X is the number of words to be displayed.
27. What is Category in WordPress?
Answer: A category is one of the predefined taxonomies in WordPress, and it is used to sort and group content into different sections. In a new WordPress installation, “Uncategorized” is the default category. We can change the default category from Settings -> Writing screen. A WordPress post can be filed under many categories and can have both tags and categories.
28. Explain Avatar in WordPress?
Answer: Avatar for Gravatar is an icon or representation of a user in a shared virtual reality, such as chat, forum, website, or any other form of the online community in which the user wants to have something to distinguish themselves from other users.
It is usually an 80px by 80px image that the user will create by themselves.
29. What should be the basic steps when our WordPress site is hacked?
Answer: WordPress platform is one of the most used CMS platforms on the web. Hence the security of this CSM plays an imperative role. For the protection of WordPress data, it is important to implement standard security policies in WordPress by analyzing the existing loopholes. Following are the steps that should need to perform when your WordPress platform will be hacked-
- Stay calm and search for an optimal solution
- Try to locate the hack
- Contact your hosting company
- Hire an IT professional who is having the expertise of InfoSec
- Restore various WordPress versions
- Identify, scan and remove the malware
- Check your access permissions
- Change security principles (password and secret keys)
30. What are the scenarios when the plugin menu is not displayed?
Answer: Users won’t be able to see the plugin menu when their blog is hosted on free wordpress.com as it’s limited with plugin uses. Even the users without an account of the administrator-level won’t be able to use the plugin menu.