Saturday, 20 April 2019

Wordpress Descriptive Question and Answer

Wordpress Descriptive Question and Answer




Q. Why wordpress for CMS?
Ans:-  WordPress is a great solution for many businesses application. There are many reasons to use wordpress as our CMS. These are :-
WordPress is free and open source, WordPress is easy to use, WordPress is scalable & flexible, WordPress has the largest community, WordPress is great for non-developers and also WordPress gives you a lot of things for free. We can extend wordpress with plugins.

Q. Name the five user roles in wordpress:
Ans:      a)  Subscribers:   can edit their own profiles and not much else.
b) Contributors: can submit posts for editors’ approval, but cannot publish anything.
c) Authors: can write and publish posts.
d) Editors: can write and publish posts and pages. They can also publish posts and   pages submitted by other users.
e) Administrators:  can do all.
Q. Name some features of wordpress.
Ans:- Some features of wordpress  are :-
*Post and Pages  * Media library * Catagories and tags * User roles and profiles * RSS and atom feeds * Clean URL * Spam protection * Automatic upgrades * Multiple sites from one installation * Rich text editing * Media uploads and embeds and menu management .
Q. Discuss theme, plugin and widget in wordpress.
Ans: Theme: A WordPress Theme is a collection of files that work together to produce a graphical interface  with an underlying unifying design for a weblog. These files are called template files. A Theme modifies the way the site is displayed, without modifying the underlying software.
Plugin:  WordPress plugins are bits of software that can be uploaded to extend and expand the functionality of your WordPress site.
Widget: Widgets are drag-and-drop components that can be added to your site’s sidebars. WordPress comes with a dozen built-in widgets. You can download many more from the plugin repository, and some themes come with their own widgets. The basic widgets you’ll find under Appearance➤Widgets.

Q. Difference between post and page in wordpress. P-66
Ans:-  About Pages
Pages are static and are not listed by date.
Pages do not use tags or categories.
An About page is the classic example. Pages can be displayed in the sidebar using the Pages widget, and some themes display pages in the navigation at the top of the site.


Q. Difference between post and page in wordpress. P-66
Ans:-  About Pages
Pages are static and are not listed by date.
Pages do not use tags or categories.
An About page is the classic example. Pages can be displayed in the sidebar using the Pages widget, and some themes display pages in the navigation at the top of the site.
About Posts
Posts are entries listed in reverse chronological order on the site homepage.
Posts can be found in the Archives, Categories, Recent Posts, and other widgets.
Posts are also displayed in the RSS feed of the site.
We can control how many posts are displayed at a time in the Reading Settings.
Q. Discuss the business benefits of wordpress.
Ans:-  WordPress has built-in support for clean and canonical URLs, microformats and rich snippets, categories and tags, and standards-based themes, it does a stellar job of optimizing sites for search engines.
There are many business benefits of wordpress are given below :-
a) Ease of Use b) Manage Your Website from Any Computer c) No HTML Editing or FTP Software Required. d) Search Engines Love WordPress Sites. e) We Have Control of our Site. f)  Extend the Functionality of Your Site with Plugins . g) Have Multiple Users. h) The Design of Your Website is 100% Customizable.

Q. Discuss Quickpress in wordpress.
Ans: The QuickPress widget lets you write a blog post right from the Dashboard. It’s handy but limited; you can use tags but not categories, media uploads but not the rich text editor, and you can’t change the post’s publication date or status.

Q. Discuss robots.txt.
Ans: The robots.txt is a standard convention web site owners can use to ask search engines not to index parts of a site.
Q. Discuss Comments vs. Trackbacks:
Ans: Comments are readers’ responses to your posts. They are  written in a small form on our post or page (usually at the bottom of the screen) and, once approved, are displayed in a list below our post.
Trackbacks are automated alerts that someone has referenced your post or page on their own site. When another blogger includes a link to our post, their site will send a notice to WordPress, including a link to their article and every brief excerpt. In most WordPress themes, these notices are displayed in our list of comments.

Q. Discuss dashboard in wordpress.
Ans:- The WordPress Dashboard allows us to control all of the behind-the-scene details of managing our site. Once we find our way around the dashboard, we will realize that it is really  easy to use and navigate.
Ex: we can go from dashboard to posts, pages, media  and settings etc.
Q. Discuss permalink in wordpress.
Ans: – Permalinks : By default, WordPress uses post and page IDs in query strings in its URLs.  We can choose a custom URL structure (also known as clean URLs or pretty permalinks).
Q. What is post? What are the available post formats in wordpress?
Ans :- A post consists of a title and some content. Collectively, posts make up the blog (or news) section of your site. Posts  are generally listed according to date, but can also be tagged or filed into categories.
The post formats available are:
• Standard (text) • Image • Image gallery • Link • Video • Audio • Chat transcript • Status (a brief update) • Quote (a quote, its source, and a link URL) • Aside.
 Q. Define categories and tags in wordpress.
Ans: – Category is used to sort and group content into different sections. A website publishing content on a variety of topics can divide their website into sections using categories.
Tags are purposefully sought out and indexed by search engines. Tags are essentially keywords for each page/article we create. Tags  are intended to be words or very short two or three word phrases. Adding tags that accurately represent a post or page will increase the chance that it will get its due traffic.
Q. How to upload and insert image content in wordpress?
Ans:-  Visit Dashboard ->media ->add new.

Q. What is Excerpts?
Ans:-  An excerpt is, as the box says in WordPress, a summary of our post. Excerpts are shown with a continuation string. By default, ‘[…]’ is appended to our excerpt text, which is  55 words long.

Q. Discuss the get_template_part() function.
Ans:-  get_template_part()    Loads  a template part (other than header, sidebar, footer) into a template. Makes it easy for a theme to reuse sections of code and an easy way for child themes  to replace sections of their parent theme.  Exm:     <?php get_template_part( ‘file_name’); ?>.
Q. Define hook .
Ans: Hooks are not functions. They are places where functions can be inserted into to WordPress’s procedures without modifying core files.
Q. What are the messures you should look for before activating a plugin? P-98
Ans:- Once you have downloaded and activated the plugin, a number of other things to look for: –
A) Do JavaScript-based administrative functions.
 B) Does your site slow down?
C) Does the plugin add warnings to the top of every administration screen?
D)  Does it add spam links to your source code?
E) Does it put ads on your admin screens—even those for other plugins’ settings? Does it add a Dashboard widget full of links to the developer’s other products?
F) Does it add text to your site’s footer (“Powered by My Awesome Plugin!”) without your permission?
G) Does its settings screen blend in with the WordPress Dashboard, or does it look completely Different?

Q. Define action and filter in wordpress.
Ans:- Actions allow us to add our own functions in predetermined locations. Each  add_action() function required two arguments: the name of the action hook and the name of our custom function. Actions are called with do_action(). Each hook has a name. To add our function to the hook by calling add_action().
 Filters allow us to modify or replace the output existing functions. The filter function will pass us some piece of content to work with. Our filter function will take the original variable as its argument, and it will return the altered  variable.  add_filter() with two arguments: the hook name followed by your function’s name.

Q. Define garbage collection in wordpress.

Ans:-  Under Expiry Time & Garbage Collection we can choose how long our cached pages will last before they should be rebuilt.

Q. Discuss add_option() function requires arguments.
Ans:- The add_option()function requires four arguments:
  1. The name of the option to be saved.
    b) Its
    c) An empty string (a deprecated argument kept for backward compatibility).
    d) The $autoload variable. This last argument determines whether your options should be loaded into WordPress’s object cache on each page load. If you’ll be using these options on the front end, this value should be ‘yes’.
  2. What’s the function of get_option(), update_option() and delete_option() 
Ans:-  get_option() is a safe way of getting values for a named option from the options table. If the desired option does not exist, or no value is associated with it, FALSE will be returned.
Exm:  <?php echo get_option( $option, $default ); ?> .
Use the function update_option() to update a named option/value pair to the options database table.
Exm:  <?php update_option( $option, $new_value, $autoload ); ?>.
delete_option() is a safe way of removing a named option/value pair from the options database table.
Exm : <?php delete_option( $option ); ?>.

How to Install Laravel 7

Very easy to Install Laravel 7 Laravel  is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development ...