Top Interview Questions and Answers

Top Interview Questions and Answers
Interview Sortout

Browsing "Older Posts"

Browsing Category "WordPress"

Wordpress Dashboard - Tutorial 4

By Dhananjay → September 10, 2018

Admin Login

  • Give the user name and password .
  • Check the remember box as the browser will remind the login and password next time.

Dashboard area contains the following main tools and links:
  • Welcome section
  • Main menu(side menu)
  • Top menu
  • Admin area
  • Screen option
  • Help option
  • Quick draft section
  • At a glance section
  • Activity section

Welcome Section
  • This section has some important links which used frequently.
  • We can customize our site look as we click on Customize Your Site button.
  • Direct links to add an about page, to write the first blog.
  • We can turn on/turn off comments by external user on our posts from here.
  • We can visit our menu and widget systems from the link given.  

Screen Options:
  • Screen option shows a group of check boxes.
  • Each check box is for a particular section.
  • If it is checked the section is on the screen on the dashboard .
  • Unchecked boxes hide the section from dashboard.
  • Ex - we have to hide the Welcome section from screen. We will uncheck it.

WordPress Installation : Tutorial 3

By Dhananjay →

WordPress Installation
Before install a WordPress we should ensure that we have already created a database , where we have to create the WordPress tables with a prefix name .Default is prefix is wp_. We should have the following information as we are going to install the WordPress:
  • Database Name: wordpress
  • User name: root
  • Password: by default blank
  • Hostname:localhost
  1. Put the database name as you have created in the database field. It appears “wordpress” by default.
  2. Give the mysql user name, which is root by default.
  3. Give the password of mysql , if you have’n define , then let the password field blank.
  4. Give the host name as running on default port, localhost.
  5. Give a prefix for the table name , which are being install in database.
A wp-config.php file is created, containing the information about database, username, password etc, at the time of installation.

Wordpress Minimum Requirement : Tutorial 2

By Dhananjay →

Chapter:2-Before Installation
Minimum Requirement of a system to run the WordPress
  • We need a server to run the PHP script, because PHP is a server side script and WordPress is based on PHP.
  • WAMP Server which is-Windows Apache MySQL PHP
  • Download Source code of WordPress from:
  • Latest version of WordPress is wordpress-3.8.1 (as on 03-04-2014)
  • Latest of WAMP is 2.2 having
    • Apache 2.2.22
    • Mysql 5.5.24
    • PHP 5.3.13
    • PhpMyadmin
  • Apache is an open source web server , which is available in free. Apache is the one of the most popular and the most lovable web server by the web developers across the world.
  • Separately we can download from:
  • MySQL is the most preferred open source RDBMS .
  • Very identical to MSSQL and other RDBMSs.
  • PHP(PHP Hypertext Preprocessor) is an open source server side scripting language having the features of OOPS and syntax similar to C Programming and Perl.
  • PHP provide a rich library to manipulate data and make most of the complicated data operations easy.

WordPress Inroduction : Tutorial 1

By Dhananjay →

Chapter1: WordPress Inroduction
What is WordPress:
  • WordPress is a world famous Open Source CMS. Based on PHP as an open source server side scripting language.
  • WordPress is a free and open source blogging tool and a content management system (CMS) based on PHP and MySQL, which runs on a web hosting service.Features include a plug-in architecture and a template system.
  • WordPress is used by more than 18.9% of the top 10 million websites as of August 2013. WordPress is the most popular blogging system in use on the Web, at more than 60 million websites.
  • Architecture of template:

  • 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.
  • It was first released on May 27, 2003, by its founders, Matt Mullenweg and Mike Little,as a fork of b2/cafelog. As of February 19, 2014, version 3.8 had been downloaded more than 20 million times.The license under which WordPress software is released is the GPLv2 (or later) from the Free Software Foundation.

Content Management Bystem (CMS) 
  • A Computer Application that allows publishing, editing and modifying content  as well as maintenance from a central interface.
  • CMSs are often used to run websites containing blogs, news, and shopping. Many corporate and marketing websites use CMSs. CMSs typically aim to avoid the need for hand coding but may support it for specific elements or entire pages.
  • The function and use of content management systems is to store and organize files, and provide version-controlled access to their data. CMS features vary widely. Simple systems showcase a handful of features, while other releases, notably enterprise systems, offer more complex and powerful functions. Most CMS include Web-based publishing, format management, revision control (version control), indexing, search, and retrieval. The CMS increments the version number when new updates are added to an already-existing file.

Architecture of wordpress template:

Wordpress Advance Interview Questions and Answers

By Dhananjay → February 5, 2018
How can we create a CTP in wordpress?
CTP means Custom Post Type. We can create our own custom post types in wordpress besides the default post. We have to use wordpress core to implement this feature. We can add Product type, property type using CTP .
Example is given as follows:
function create_post_type() {
      register_post_type( 'Custom CPT',
          'labels' => array(
            'name' => __( 'Name of your CPT' ),
            'singular_name' => __( 'Name of your CPT' )
          'public' => true,
          'has_archive' => true,
add_action( 'init', 'create_post_type' );

Write custom query to list recent five posts?
Using WP_Query() method we can create custom wordpress queries. An example is given below:
$args = Array('post_type' => 'post', 'posts_per_page' => '5' );
$the_query = new WP_Query( $args );
// The Loop
if ( $the_query->have_posts() ) : 
   while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
    <h2><?php the_title(); ?></h2>
    <?php endwhile; ?>
<?php else : ?>
    <p> no posts found</p>
<?php endif; ?>

Wordpress Basic Interview Questions and Answers

By Dhananjay → January 18, 2018
 What is Wordpress?Wordpress is a content management tool and available as an open source. It is based on PHP-MySQL application.Nowadays WordPress is used for blogs, informational sites, e-commerce store, learning management system, booking systems and for various applications.
What is a CMS?
A CMS is a tool to manage content for a website. It provides the dynamic functionality to change, add design. A CMS can be used to manage various type organized data. Wordpress is the most popular CMS.