WordPress



1. What is WordPress?  

Word press is a best Open Source CMS(content management system) which allows it to be used free of cost. You can use it on any kind of personal or commercial website without have to pay a single penny for it. It is built on PHP/MySQL (which is again Open Source) and licensed under GPL(General Public License).

WordPress started in 2003 with a single bit of code to enhance the typography of everyday writing and with fewer users than you can count on your fingers and toes. Since then it has grown to be the largest self-hosted blogging tool in the world, used on millions of sites and seen by tens of millions of people every day.

WordPress is the world's most popular tool for creating websites. WordPress is capable of creating any kind of website, from a simple blog to a full-featured business website. You can even use WordPress to create an online store (using the popular WooCommerce plugin).

You say you've never built a website? That's not a problem! With WordPress you don't need any coding or design skills to create a professional looking site. There are thousands of free site designs to choose from (these designs are known as "themes" in the WordPress world).

With WordPress it's easy to build your website without writing a single line of code or knowing anything about HTML.

Unlike traditional desktop software, WordPress runs online (in the cloud, so to speak). There's nothing to install on your computer and you don't need any special tools. You can update your website from anywhere that you have an Internet connection - even your smartphone. There are even free WordPress mobile apps for iPhones and Android phones.

Here's the best part: WordPress is free. It's both free to use and free to modify. So, if you are the sort of person who likes to tinker with code, you can dig in and make WordPress do just about anything you want it to.

Unlike other "free" website tools, WordPress does not lock you into some proprietary service like Wix, Weebly, or Squarespace. You can host your website anywhere. Or move your site to another hosting service anytime you like.



2. What are hooks and define types of hooks in WordPress?  

Hooks are provided by WordPress to allow your plugin to 'hook into' the rest of WordPress; that is, to call functions in your plugin at specific times, and thereby set your plugin in motion. There are two kinds of hooks:

Actions Hooks: Actions hooks are the hooks that the WordPress core launches at specific points during execution, or when specific events occur. Your plugin can specify that one or more of its PHP functions which are executed at these points, using the Action API.

Filters Hooks Filters hooks are the hooks that WordPress launches to modify text of various types before adding it to the database or sending it to the browser screen. Your plugin can specify that one or more of its PHP functions which are executed to modify specific types of text at these times, using the Filter API.

Hooks are provided by WordPress to allow your plugin to 'hook into' the rest of WordPress; that is, to call functions in your plugin at specific times, and thereby set your plugin in motion. There are two kinds of hooks:

Actions Hooks: Actions hooks are the hooks that the WordPress core launches at specific points during execution, or when specific events occur. Your plugin can specify that one or more of its PHP functions which are executed at these points, using the Action API.

Filters Hooks Filters hooks are the hooks that WordPress launches to modify text of various types before adding it to the database or sending it to the browser screen. Your plugin can specify that one or more of its PHP functions which are executed to modify specific types of text at these times, using the Filter API.

Actions Functions: has_action()
add_action()
do_action()
do_action_ref_array()
did_action()
remove_action()
remove_all_actions()

Filter Functions: has_filter()
add_filter()
apply_filters()
apply_filters_ref_array()
current_filter()
merge_filters()
remove_filter()
remove_all_filters()



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


4. How many tables default WordPress have? Can you name those default WordPress table?  

The default version of WordPress is incorporated with 11 tables. They are-
  • wp_options
  • wp_users
  • wp_links
  • wp_commentmeta
  • wp_term_relationships
  • wp_postmeta
  • wp_posts
  • wp_term_taxonomy
  • wp_usermeta
  • wp_terms
  • wp_comments



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


6. Different between WordPress.com vs WordPress.org?  

WordPress.com (fully hosted) Focus on your beautiful content, and let us handle the rest.

WordPress.org (self-hosted) Get your hands dirty, and host your website yourself.

WordPress.com
Focus on your beautiful content, and let us handle the rest.
Premium hosting, security, and backups are included. You can even upgrade to a custom domain, like YourGroovyDomain.com.
Choose from hundreds of beautiful themes. Make it your own with Custom Design.
Integrate your site with Facebook, Twitter, Tumblr, and other social networks.
Popular features like sharing, stats, comments, and polls are included. There's no need to install plugins.
Personal support and the WordPress.com forums are always available.
You must register for an account on WordPress.com and abide by our Terms of Service.

WordPress.org
Get your hands dirty, and host your website yourself.
You'll need to find a host, and perform backups and maintenance yourself. We offer VaultPress for security and backups.
Install custom themes. Build your own with PHP and CSS.
Install a plugin, like Jetpack, to enable sharing functionality on your site.
Install plugins to extend your site's functionality.
Visit the WordPress.org support forums for assistance.
No registration with WordPress.org is required.



7. What are disadvantages of Wordpress?  

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

The disadvantages of Wordpress are:
  • Using several plugins can make website heavy to load and run.
  • PHP knowledge is required to do modification or changes in the wordpress website.
  • Sometimes software needs to be updated to keep the wordpress up to date with the current browsers and mobile devices.
  • Updating of wordpress version leads to loss of data so it requires the backup copy of website.
  • Modifying and formatting the graphic images and tables is difficult.


8. Is WordPress good for Google ranking and SEO?  

Yes! WordPress was born with one of key features to drive the traffic called built-in SEO and it is the most considered point along with other features in this technology, which makes it popular worldwide. Search engine optimization is considered the best selling point of WordPress to boost the traffic over the web or in other words Google ranking. Although there are multiple CMSs, but they require an installed SEO extension, whether commercial or free, but WordPress is SEO-ready. It can further extend the SEO feature via a few Nice FREE SEO plugins, including All in one SEO and Yoast. These well-known & popular plug-ins help you rank your website's on multiple search engines like Google, Bing and Yahoo.



9. What are the template tags in WordPress?  

A template tag is code that instructs WordPress to "do" or "get" something. Like in header.php we will use the tag bloginfo('name') to get "Site Title" from wp-options table which is set in Setting > General at WordPress dashboard.

The the_title() template tag is used to display the post title.

wp_list_cats() is for display categories.

get_header() for getting header.

get_sidebar() for display the sidebar on page.

get_footer() for get the footer content on page.



10. What are the different types of gadgets present in the Wordpress Dashboard?  

The different types of gadgets present in the Wordpress Dashboard are:

  • Dashboard Menu
  • Screen Options
  • Welcome
  • Quick Draft
  • Wordpress News
  • Activity
  • At a Glance


11. State some of the basic features of WordPress?  

Here are some of the features that we think that you'll love.
  • Posts are listed entries that are maintained in chronological order timely, but Pages are static and that are are not bounded with time.
  • Posts are for everyone means social, but in contrast Pages are NOT social. You can categorize Post accordingly, but Pages are maintained in hierarchical order.
  • Posts are displayed in RSS feed, but not Pages.
  • Pages are featured with custom template, but Posts are not.

The key features of WordPress are:

  • Typographical niceties
  • No rebuilding
  • WordPress Links
  • Comments
  • WordPress Themes
  • Cross-blog communication tools
  • XML-RPC interface
  • Password Protected Posts
  • Intelligent text formatting
  • Full user registration
  • Spam protection
  • Easy Importing
  • WordPress Pages
  • Bookmarklets
  • Easy installation and upgrades
  • Full standards compliance
  • Multiple authors
  • Workflow


12. Developer Features in a WordPress?  

For developers, WordPress Have lots of goodies packed under the hood that you can use to extend WordPress in whatever direction takes your fancy.
  • Plugin System
  • Theme System
  • Application Framework
  • Custom Content Types
  • The Latest Libraries


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



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


15. What is the basic difference between posts vs. Pages?  

Posts and pages are the two content types used in WordPress. When WordPress is used as a blogging platform, majority of the content are posts. Posts are timed and are listed in chronological order with the latest posts on the top. The old posts are archived on the basis of month and year. Posts are meant to be shared and commented on.

Pages in WordPress, on the other hand, are static content that may include about us, contact us, privacy policies and others pages. The pages are timeless entries and do not have a date or month associated with them. For instance, even if you make changes to them, you will not have a Privacy policy page 2014 and Privacy policy page 2015 and so on. WordPress pages are not interactive and users do not share or comment on it.

Key differences enlisted
  • Posts are timely entries and pages are not tied with time.
  • Pages cannot be included in RSS feed, while posts can.
  • Posts are shared on social media and pages are not.
  • Posts are categorized on the basis of time, whereas, pages are hierarchical.
  • There is no custom template in posts but they are in the pages.


16. What are rules to follow in WordPress plugin development?  

  • Find a unique name
  • Setup a prefix (related to your brand)
  • Create the plugin's folder
  • Create sub-folders for PHP files, assets, and translations
  • Create the main plugin file and fill in obligatory header information
  • Create a readme.txt file
  • Use proper constants and functions to detect paths to plugin files
  • Create additional PHP files and include them inside the main one
  • Create activation and deactivation functions
  • Create an uninstall script


17. What are the file structure in wordpress?  

Following are main files which used in wordpress
  • index.php :- for index page.
  • search.php :- For display the search result page.
  • single.php :- for single post page.
  • page.php :- display the static pages.
  • category.php :- Display the category page.
  • tag.php :- For display the tags page.
  • author.php :- For display author page.
  • taxonomy.php :- For display the taxonomy archive.
  • attachment.php :- For managing the single attachments page.
  • header.php :- For managing top part of page.
  • footer.php :- For manage bottom part of pages.
  • archive.php :- For archive page display.
  • 404.php :- For display 404 error page.


18. Why You Should Use WordPress?  

WordPress is that it's easy to use and flexible enough for just about anything. That's the main reason why WordPress has grown so much in popularity. According to a recent survey, WordPress powers 22.5% of all websites on the internet.

Let's take a look at why you should use WordPress.
  • WordPress is Free as in Freedom
  • Easy to Use and Learn
  • Extendable by Using Themes and Plugins
  • Search Engine Friendly
  • Easy To Manage
  • Safe and Secure
  • WordPress Can Handle Different Media Types


19. Is it possible to rename the WordPress folder?  

Yes, it is possible to rename the WordPress folder. If WordPress is already installed you have to login 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.



20. What ways to use WordPress?  

WordPress can be used in many different ways. It is open to possibilities.

You can use WordPress as the following:
  • Arcade
  • Blog
  • Content Management System (CMS)
  • Gallery
  • Portfolio
  • Rating Website
  • Shopping Store
  • Video Collection Site
  • Membership Site


Java Interview Question

.Net Interview Question

PHP Interview Question

AngularJS Interview Questions



© 2017 - Lazy {Question}