Showing posts with label WordPress Interview Questions & Answers. Show all posts
Showing posts with label WordPress Interview Questions & Answers. Show all posts

Wednesday, 19 August 2015

Wordpress Interview Questions and Answers for Experienced basic advanced 2015-2016

Wordpress Interview Questions and Answers for Experienced basic advanced 2015-2016,Wordpress Interview Questions and Answers 2015,Top 20 Wordpress Interview Questions,Wordpress Interview Questions & Answers,Wordpress Interview Questions and Answers For Freshers and Experienced, Wordpress Frequently Asked Interview Questions,Freshers Latest Wordpress Technical Interview Questions & Answers,F2F Interview,Wordpress, Interview Questions & Answers,What would be some common Wordpress interview questions,Wordpress interview questions and answers for 2 years,Wordpress Developer Interview Questions,10 Common face to face Wordpress interview questions and answers,Wordpress Interview Questions and Answers,Top 10 Wordpress Interview Questions and Answers 2015,Wordpress (CMS)Interview Question Answer,Technical Wordpress Interview Questions and Answers for getting Job,Where can I find good Wordpress interview questions,Wordpress job interview questions and answers for freshers,Wordpress interview questions and answers for experienced,10 Tough Wordpress Interview Questions With Smart Answers,Wordpress interview questions and answers for experienced,How to Answer Wordpress Interview Questions,Where can I find good Wordpress interview questions ,Download Wordpress Interview Questions.

Question: What is WordPress?

Wordpress is Content Management System(CMS) which have robust admin section. From Admin section you can manage the website text/html, image & videos etc. You can easily manage posts & pages. You can set meta title, meta description & meta keywords for each post. It gives you full access control over post & pages .

Question: Is WordPress opensource?

Yes, WordPress is opensource and you can do customization as per your requirement. WordPress is built in PHP/MySql/javascript/jQuery which is also an opensource.


How many tables are there in WordPress by default?

There are about 11 tables in WordPress by default.you need to check phpMyAdmin to determine the number of tables in latest WordPress installation.

How you can disable the WordPress comment?

If you go on dashboard under options-discussion there is a comment “Allow people to post comment” try unchecking the comment.

Does de-activated plugins slow down a WordPress site?

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

Which is the best multi-lingual plugin for WordPress?

Keeping all the limitations in mind, WPML would be the best multi-lingual plugin for WordPress.

Name the WordPress file structure that you normally see in the “Editor” in “Appearance” tab.

There are various files within the WordPress file structures that are modified and used by programmers, but I have listed the major ones that are widely used by WP users.

header.php : is used to manage the header of the website

index.php : is used for index page.

page.php : is used displays the page type in WordPress

single.php : is used to manage single post page

author.php : is used to display author page


Question: 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.

Question: From where you can download plugins?

https://wordpress.org/plugins/

Question: From where you can download themes?

https://wordpress.org/themes/

Question: What is the default prefix of wordpress tables?

wp_ is the prefix for wordpress but you can change at the time of installation.

Question: What is WordPress loop?

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

Question: What are the template tags in WordPress?

Template tags is a code that instructs WordPress to “do” or “get” something

Question: How many tables a default WordPress will have?

Following are main table in wordpress:

wp_commentmeta
wp_comments
wp_links
wp_options
wp_postmeta
wp_posts
wp_terms
wp_term_relationships
wp_term_taxonomy
wp_usermeta
wp_users

Question: How to hide the top admin bar at the frontend in WordPress?

Add following code functions.php
?
1
add_filter(‘show_admin_bar’, ‘__return_false’);

Question: How to hide Directory Browsing in WordPress from server?

Add following code in htaccess file
?
1
Options -Indexes

Question: How to display custom field in wordpress?

?
1
echo get_post_meta($post->ID, ‘keyName’, true);

Question: How to run database Query in WordPress?
?
1
$wpdb->query(“select * from $wpdb->posts where ID>10 “);

Question: What types of hooks in wordpress is used?

1)Following are Actions hooks:.

has_action()
add_action()
do_action()
do_action_ref_array()
did_action()
remove_action()
remove_all_actions()

2)Following are Filters hooks .?

has_filter()
add_filter()
apply_filters()
apply_filters_ref_array()
current_filter()
remove_filter()
remove_all_filters()

Question: What are meta tags in wordpress?

Meta-tags are keywords and description used to display website.

Tuesday, 4 August 2015

Top 10 WordPress Interview Questions and Answers

Top 10 WordPress Interview Questions and Answers 2015,Top 10 WordPress Interview Questions,WordPress Interview Questions & Answers,WordPress Interview Questions and Answers For Freshers and Experienced. WordPress Frequently Asked Interview Questions,Freshers Latest WordPress Technical Interview Questions & Answers,F2F Interview,WordPress, Interview Questions & Answers,What would be some common WordPress interview questions,WordPress interview questions and answers for 2 years,WordPress Developer Interview Questions,10 Common face to face WordPress interview questions and answers,WordPress Interview Questions and Answers,Top 10 WordPress Interview Questions and Answers 2015,WordPress (CMS)Interview Question Answer,Technical WordPress Interview Questions and Answers for getting Job,Where can I find good WordPress interview questions,WordPress job interview questions and answers for freshers,WordPress interview questions and answers for experienced,10 Tough WordPress Interview Questions With Smart Answers,WordPress interview questions and answers for experienced,How to Answer WordPress Interview Questions,Where can I find good WordPress interview questions ,Download WordPress Interview Questions.

1. What is WordPress.
WordPress is a CMS (Content Management System) based on php and mysql. Its free and open source blogging tool. Its now most popular blogging tool on internet network.

2. What is current version of WordPress.
The WordPress 3.5.2 version released in June 2013.

3. What are the features of WordPress.

Simplicity, make WordPress very easy to use for everyone.
Free open source.
Easy to install.
There are lots of free as well as paid theme to use.
Extends with plugins, we can extends the functionality of wordpress using thousands of free plugins or will create any plugin according to your requirements.
Multilingual, wordpress is available on more than 70 languages.
Multisite, create a child website along with the parent site with the same URL and admin panel.
Flexibility, with wordpress you will create any type of blog or website.
Comment, the built in comment system also make wordpress popular as you can comment your views on website.
Full standards compliance, XML-RPC interface, easy importing, cross-blog communication tools.

4. What is the default prefix of wordpress tables.

By default prefix of wordpress is wp_ . But for security reasons it is highly recommend to use different prefix.

5. How can you backup or import your WordPress content from admin panel.

For import content from wordpress admin panel goes to:-

WordPress admin -> Tools -> Import

This will create a xml file for your posts, comments, category etc.

6. Tell some commonly used functions in wordpress.
Wordpress have lot of inbuilt functions. some of commonly used function in wordpress are:-

wp_nav_menu()  :- Displays a navigation menu.
is_page() :- Condition for check if page is displayed. Its return true or false only.
get_the_excerpt() :- Copy the excerpt of the post into a specified variable.
in_category() :- Tests if the specified post is assigned to any of the specified categories or not.
the_title():- Displays the title of the post.
the_content():-  Displays the contents of the post.
for more functions, click here

7. What are hooks in wordpress.
Wordpress hooks allows user to create or modify wordpress theme / plugin with shortcode without changing the original files. There are two types of hooks:

Action Hooks
Filter Hooks
Action Hooks :-  Action hooks are points in wordpress core where its possible for outside resources to insert additional code.

For example- wp_head() , the_post(), get_sidebar() is an action hook which is used by most of themes. To hook an action, create an hook in your function file and hook it using add_action() function.

<?php

add_action( 'wp_head', 'head_func' );

function head_func () {

echo "
This is test
";

}

?>
Filter Hooks :- Filter hooks are used to handle output like using it you will add an text or content at end of content of your post. You will add an filter using add_filter() function. There are various filter used in wordpress as the_title(), wp_title(), get_the_excerpt(), get_to_ping(), attachment_icon().

For example:- Using these filter we will add content add end of posts.

<?php add_filter( 'the_content', 'head_func' );

function head_func( $content ) {

if ( is_single() ) {

$content .= '
This is test
' . " ";

}

return $content;

}

?>
8. What is file structure in wordpress.
The main files used in wordpress are:-

index.php :- for index page.
single.php :- for single post page.
page.php :- display the static pages.
category.php :-  Display the category page.
archive.php :- For archive page display.
tag.php :- For display the tags page.
author.php :- For display author page.
search.php :- For display the search result page.
404.php :- For display 404 error 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.
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 information from user profile.

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

wp_list_cats() are  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 custom fields in wordpress.
We will add extra information to your post by using custom fields. Custom Fields are a form of meta-data that allows you to store arbitrary information with each WordPress post.

Meta-data is handled with key/value pairs. The key is the name of the meta-data element. The value is the information that will appear in the meta-data list on each individual post that the information is associated with.

To display the Custom Fields for each post, use the the_meta() template tag.

To fetch meta values use the get_post_meta() function.

For example we use custom fields:-

ID, ‘key’, true); ?>

WordPress Interview Questions & Answers: WordPress CMS Interview Questions 2015-16

WordPress Interview Questions &amp; Answers: WordPress CMS Interview Questions 2015-16,WordPress Interview Questions and Answers 2015,Top 30 WordPress Interview Questions,WordPress Interview Questions & Answers,WordPress Interview Questions and Answers For Freshers and Experienced. WordPress Frequently Asked Interview Questions,Freshers Latest WordPress Technical Interview Questions & Answers,F2F Interview,WordPress, Interview Questions & Answers,What would be some common WordPress interview questions,WordPress interview questions and answers for 2 years,WordPress Developer Interview Questions,10 Common face to face WordPress interview questions and answers,WordPress Interview Questions and Answers,Top 10 WordPress Interview Questions and Answers 2015,WordPress (CMS)Interview Question Answer,Technical WordPress Interview Questions and Answers for getting Job,Where can I find good WordPress interview questions,WordPress job interview questions and answers for freshers,WordPress interview questions and answers for experienced,10 Tough WordPress Interview Questions With Smart Answers,WordPress interview questions and answers for experienced,How to Answer WordPress Interview Questions,Where can I find good WordPress interview questions ,Download WordPress Interview Questions.

1 What is WordPress?

WordPress is an open source Content Management System which can be used to built websites and Blogs. WordPress was released in 2003 and it is based on PHP & MYSQL.
2 Tell me Is a web site on WordPress secure?

Yes! A WordPress Website is completely secure from any unauthorized access. However the error may occur due to downloading the Plug-in and Tools from an unauthorized resource.
3 What is the difference between characters 23 and x23?

The first one is octal 23, the second is hex 23.

4 How come the code <?php print Contents: $arr[1]; ?> works, but <?php print Contents: $arr[1][2]; ?> doesnt for two-dimensional array of mine?

Any time you have an array with more than one dimension, complex parsing syntax is required. print “Contents: {$arr[1][2]}” would’ve worked. />

5 Tell me Would you initialize your strings with single quotes or double quotes?

Since the data inside the single-quoted string is not parsed for variable substitution, it’s always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution.

6 Do you know Why doesnt the following code print the newline properly?

<?php
$str = ‘Hello, there.nHow are you?nThanks for visiting Us’;
print $str;
?>
Because inside the single quotes the n character is not interpreted as newline, just as a sequence of two characters – and n.

7 How to call a constructor for a parent class?

parent::constructor($value)

8 Tell me Are objects passed by value or by reference?

Everything is passed by value.

9 What is the difference between accessing a class method via -> and via ::?

:: is allowed to access methods that can perform static operations, i.e. those, which do not require object initialization.

10 Suppose If the variable $a is equal to 5 and variable $b is equal to character a, whats the value of $$b?

100, it’s a reference to existing variable.

11 How to find out the number of parameters passed into function?

func_num_args() function returns the number of parameters passed in.

12 What is the ternary conditional operator in PHP?

Expression preceding the ? is evaluated, if it’s true, then the expression preceding the : is executed, otherwise, the expression following : is executed.

13 Explain When are you supposed to use endif to end the conditional statement?

When the original if was followed by : and then the code block without braces.

14 Explain Will comparison of string 10″ and integer 11 work in PHP?

Yes, internally PHP will cast everything to the integer type, so numbers 10 and 11 will be compared.

15 How to pass a variable by value in WordPress?

Just like in C++, put an ampersand in front of it, like $a = &$b

16 How to define a constant?

17 Do you know Would I use print $a dollars or {$a} dollars to print out the amount of dollars in this example?

In this example it wouldn’t matter, since the variable is all by itself, but if you were to print something like “{$a},000,000 mln dollars”, then you definitely need to use the braces.

18 Suppose I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, whats the problem?

PHP Interpreter treats numbers beginning with 0 as octal. Look at the similar PHP interview questions for more numeric problems.

21 What are the features of WordPress?

The key features of wordpress are –
1. Full standards compliance
2. No rebuilding
3. WordPress Pages
4. WordPress Links
5. WordPress Themes
6. Cross-blog communication tools
7. Comments
8. Spam protection
9. Full user registration
10. Password Protected Posts
11. Easy installation and upgrades
12. Easy Importing
13. XML-RPC interface
14. Workflow
15. Typographical niceties
16. Intelligent text formatting
17. Multiple authors
18. Bookmarklets
19. Ping away
22 How many tables a default WordPress will have?

A default wordpress will have 11 tables. They are-
1. wp_commentmeta
2. wp_comments
3. wp_links
4. wp_options
5. wp_postmeta
6. wp_posts
7. wp_terms
8. wp_term_relationships
9. wp_term_taxonomy
10.wp_usermeta
11.wp_users

23 Who is the founder of WordPress?

Matthew Charles Mullenweg.

24 What if I need help after the project?

That is what we are here for! You will get full training at the conclusion of the project and we will be available for email support following the project when needed. Additional one on one training will be available at an additional cost if needed.
Coming soon we will be launching a new members support area here on the web site that will include full training for clients only. This will include a number of PDF downloads, tutorials and video training. This will be available to all past and future clients.

25 Are there any limitations to a WordPress web site?

Not that we have found yet. 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. I have yet to find a reason not to use WordPress for any client site.

26 Do I need to have a blog in order to use WordPress for my site?

WordPress was originally used as blogging software (and still is) though it has since become popular for web sites also. You do not need to include a blog on your web site in order to use WordPress. We have created a number of sites that do not have any blog at all but the client wanted the ability to update content themselves so we used WordPress.
We do suggest having a blog because it will help with your search engine optimization. Though we only suggest that if you plan on updating the blog on a regular basis, otherwise having a blog without any updates is not going to do you any good.

27 Will using WordPress help my site show up on Google?

Yes. That is one of the major selling points of using WordPress is that it includes excellent built in search engine optimization (SEO). With a normal site you would need to include all of the SEO yourself (or hire someone). While it is still recommended that you hire someone for a full SEO campaign if needed, the built in SEO capabilities of WordPress more than enough to get you started.
We will also install additional plugins to help with your SEO when you first launch the site. These are popular plugins that are known to help your rank on search engines such as Google and Bing.

28 Do I need to know any programming to make updates?

To initially setup a site and customize it you will, though you don’t need to worry about that because that is what we are doing for you. Once the site is setup we will train you on how to perform the updates (very simple) and you will be good to go. In order to perform the content updates you may need in the future you will not need to know any programming at all. I compared it earlier to using Microsoft Word and it really is that easy!
Forget about having to hire a programmer to make simple text updates on your site from now on, you can go in and do it yourself in a matter of minutes.

29 Will I have the ability to update my own content?

That depends on the site/project itself. We have created sites where almost every aspect could be edited by the client (content, navigation, photos, forms, etc) and others where it was a simple setup to allow for the main content areas to be edited. This is something we will discuss when planning the project and determine what your need will be. At the very least you will be able to edit the site content yourself and the ability to add/remove photos.

30. How to hide the top admin bar at the frontend of wordpress 3.4?

Add the below mentioned code in the theme(active) function.php add_filter(‘show_admin_bar’, ‘__return_false’);

(or)

Add the below code in the active theme stylesheet

#wpadminbar {

display: none; visibility: hidden;

}