Wordpress

1) What is WordPress?

Ans) WordPress is free open source content management system (CMS) written PHP language and licensed under GPL. It allows users to create dynamic websites from personal blogs to e-commerce.Wordpress current stable version as on March 2018 of WordPress is 4.9.4. You can download it free without any cost from https://wordpress.org/latest.zip..


2) What are minimum requirements to run WordPress?

Ans)Requirements: 1. PHP 7 or greater
2.MySQL 5.6 or greater OR MariaDB 10.0 or greater
3.The mod_rewrite Apache module
4.HTTPS support(Recommended)


3) List some features of WordPress?

WordPress powers more than 28% of the web and this figure is not limited it rises every day.Everything from simple websites, to blogs, to complex portals and enterprise websites, and even applications, are built with WordPress. Here are some of the features of WordPress.
1.It’s Simplicity
2.Easier publishing tools
3.Search Engine Optimized
4.User Management
5.Media Management
6.Easy Theme System
7.Easy Extendability with Plugins
8.Multilingual Support
9.Easy Installation and Upgrades
10.Multilingual Support
11.Built-in Comments System
12.Custom Content Types


4)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.


5) Do you need to have a blog in order to use WordPress for a site?

Ans) WordPress was originally used as blogging software though it has since become popular for the website also. It is not necessary to have a blog to use WordPress. Still having a blog is commendable as it will help in search engine optimization.


6) Are there any limitations to a WordPress website?

Ans) You can use WordPress for e-commerce sites, membership sites, photo galleries and any other type of site you can think of. The website is created using the same HTML code as any other site, so there are no limitations there either.


7) 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.


8)What are the types of hooks in WordPress and mention their functions?

Ans) There are two types of hooks
1) Action hooks
2) Filter hooks
Hooks 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.


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

Ans) The difference is in who’s hosting your site. With org, YOU host your website or blog. This is where you find the open source software to download. -com, THEY host for you.


10) Where is WordPress content stored?

Ans) WordPress contents are stored in MySQL database on Server.


11) What are the differences between Posts and Pages??

Ans) Posts and Pages are the two content types in WP.

Posts are timed and listed in chronological order with the latest posts at the top. Posts are meant to be shared and commented on. Pages are static are static content, so an about us, contact us page etc. They are permanent and timeless entries.


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

Ans) There are two types hooks are available in WordPress, action hooks and filter hooks They allow the user to, with short snippets of code, modify areas in a theme or plugin without modifying the original file.


13) What do you mean by a custom field in WordPress?

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.


14) What is the prefix of WordPress tables by default?

Ans) By default, wp_ is the prefix for WordPress.


15) 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.


16) 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 settings
WordPress address (URI) :
Blog address( URI) :
After making the changes, you can rename the folder or directory with the WordPress file in it.


17) How many tables are there in WordPress by default?

Ans)1. Install security plugins like WP security
2.Re-install the latest version of WordPress
3.Change password and user-ids for all your users
4.Check your themes and plug-ins are up to date


18) What are the template tags in WordPress?

Ans) In WordPress template tags is a code that instructs WordPress to “do” or “get” something.


19) Does WordPress have cookies?

Ans) Yes, WordPress has cookies, and WordPress uses cookies for verification of users while logged in.


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

Ans) There are two types hooks are available in WordPress, action hooks and filter hooks They allow the user to, with short snippets of code, modify areas in a theme or plugin without modifying the original file.


21) How do you enable debug mode in WP?

Ans) You can enable debug mode in WP by editing wp-config.php file and changing WP_DEBUG constant value to true


22) Which ‘meta box’ is not hidden by default on Post and Page screens??

Ans) Featured Image is the meta box that is not hidden by default on Post and Page screens.


23) What is the difference between the two URLs in General Settings? (Hint: WordPress Address AND Site Address)?

Ans) The WordPress Address is where to look for WordPress files, while the Site Address is what will be used as the base for creating URLs for web pages.


24) In WordPress, objects are passed by value or by reference?

Ans) In WordPress, all objects are passed by value.


25) How to run database Query on WordPress?

Ans) WordPress’s query function allows you to execute any SQL query on the WordPress database. It is best used when there is a need for specific, custom, or otherwise complex SQL queries. For more basic queries, such as selecting information from a table, see the other wpdb functions above such as get_results, get_var, get_row or get_col. Syntax $wpdb->query('query');


26) What are Importers in WordPress?

Ans) In WordPress, Importers are plugins that provide functionality to import a bulk XML file with any number of records. It enables to import Posts, Page, Custom Posts and Users data in an XML file.


27)Why is a static front page used in WordPress and how can you create one?

Ans) Some users want their WordPress installation to be more than a blog.In order to give their page a look like a real website, the users tend to use static front page. The static front page in a WordPress can be created in the page section, where the user has to upload a PHP file to the server in the theme folder.And, then later select that is selected as a template, and that ultimately allows you to add any page and look that you wanted for your blog and will remain static.


28) What is a child theme?

Ans) The extension of a parent theme is a child theme.In case you make changes to the parent theme, then any update will undo the changes. When working on a child theme, the customizations are preserved on an update.


29) In which cases you don’t see plugin menu?

Ans) You can’t see your plugin menu when the blog is hosted on free wordpress.com as you cannot add plugin there. Also, if you do not have an account of an administrator level on your WordPress is not possible to see the plugin.


30) 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.


31)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..


32) 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.


33) 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.


34) Do de-activated plugins slow down a WordPress site?

Ans) No, de-activated plugins cannot slow down the WordPress site. Wordpress only loads the active plugins and ignores everything else.


35) 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.


36)Which is the best multilingual plugin for WordPress?

Ans) Keeping all the limitations in mind, WPML would be the best multilingual plugin for WordPress.


37) Can you update your own content on the site?

Ans) It depends on the type of the site or project, but yes one can update their own content on the site.


38) What are meta-tags?

Ans) Meta-tags are keywords and description used to display website or page information.


39) 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.


40) Can you host WordPress using Amazon web services such as EC2, RDS, EBS, etc.?

Ans) Yes, you can host using Amazon web services.


41) Is there any way to write series in WordPress?

Ans) You can use organize series plugin to write series in WordPress.


42) What are the reasons why one should not hack WordPress core file?

Ans) The best reason not to hack the core files is that whatever you might be doing has to be reworked as a patch.


43) How will you display error messages during development in WordPress?

Ans)To display error messages in WordPress. Open WordPress wp-cofig.php file and change WP_DEBUG constant value to true In WordPress, WP_DEBUG is a PHP constant (a permanent global variable) that can be used to trigger the “debug” mode throughout the website.


44) Function to get website url in wordpress?

Ans) get_site_url(); function is used to get website url in wordpress.


45) What are the template tags in WordPress? List some of them?

Ans) In WordPress template tags are PHP functions that are used to display information dynamically or customize blog template.Below are the list of some generally used template tags in WordPress get_header() wp_register() get_sidebar() wp_title() wp_enqueue_script() get_the_author() wp_list_authors() category_description() get_bookmarks()

46) What is the loop in WordPress?

Ans) The Loop is PHP code used by WordPress to display posts.


47) What are disadvantages of WordPress?

Ans) Disadvantages are:

  • Use of multiple plugins can make website heavy to load and slow
  • Only utilizes PHP
  • Sometimes updates can lead to loss of data, so you always need a backup copy
  • Modifying images and tables are difficult.

  • 48) What is a WordPress taxonomy?

    Ans) In WordPress, a “taxonomy” is a grouping mechanism for some posts (or links or custom post types).There are four default taxonomies in WordPress they are 1.Category
    2.Tag
    3.Link Category
    4.Post Formats
    You are also free to create your custom taxonomies too.


    49) What is Activity Widget in WordPress Dashboard?

    Ans)The Activity widget includes latest comments on your blog, recent posts and recently published posts. It allows you to unapprove or approve the comment, reply to the comment, editing the comment or you can delete the comment or move it to spam.


    50) What is the use of Post via e-mail option in WordPress Writing Setting?

    Ans) This option uses email address to create post for you and publishes posts on your blog by email. To use this, you'll need to set up a secret e-mail account with a POP3 access, and any mail received at this address will be posted.