Subscribe For Free Updates!

We'll not spam mate! We promise.

Tuesday, 21 October 2014

Wordpress Interview Questions and Answers

Wordpress Interview Questions and Answers

Wordpress Interview Questions and Answers:


1. What is WordPress?

WordPress is CMS(Content Management System) based on php and mysql.Its free and open source blogging tool.The world aproximately 22% websites used wordpress.Its now most popular blogging tool on internet network.

The main reason for its popularity is its admin very easy to use and manage.Its will work on apr. 60 million websites world wide.



2. Who and when developed wordpress?

The Matt Mullenweg and Mike Little is founder of wordpress.Its first release in 27 May 2003.The first version released is 0.7.

 


3. What is current version of wordpress?

The wordpress 3.5.1 version released on 24 January 2013.

 

4. What are the features of wordpress?

1. Simplicity,Make wordpress to manage easily that is its very easy to use.

2. Free open source ,its free to use wordpress.

3. Easy theme system,In wordpress we have thousand of good free theme to use.

4. Extends with plugins, we can extends the functionality of wordpress using thousands of free plugins or will create any plugin according to your requirements.

5. Community,WordPress has vibrant and supportive community.

6. Multilingual, wordpress is available on more than 70 languages.

7. Flexibility, with wordpress you will create any type of blog or website.

8. Comment, the built in comment system also make wordpress popular as you can comment your views on website.

9. Easy installation and upgrades.

10. Full standards compliance, Easy Importing,Cross-blog communication tools.


5. How many  tables wordpress have by default ?

By default wordpress have 11 tables.

1. wp_posts

2. wp_commentmeta

3. wp_comments

4. wp_links

5. wp_options

6. wp_postmeta

7. wp_terms

8. wp_term_relationships

9. wp_term_taxonomy

10.wp_usermeta

11.wp_users


6. What is the prefix of wordpress tables by default?

By default, wp_ is prefix of wordpress.


7. How you will pass a variable by value in WordPress.

Its same like we will work in c,

$a = &$b


8. How can we backup or import our 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 our posts ,comments, category etc.


9. What are the functions commonly used in wordpress?

WordPress have lot of inbuilt functions.Some of commonly used function in wordpress are:-

1. wp_nav_menu() :- Displays a navigation menu created in wordpres admin menu.

2. is_page() :- Condition for check if page is displayed. Its return true or false.

3. get_excerpt() :- Displays the excerpt of the current post with read more link for display full post.

4. is_category() :- Condition for check if category is displayed. Its return true or false.

5. the_title():- Displays the title of the current post

6. the_content():- Displays the contents of the current post.


10. What is file structure in wordpress?

The main files used in wordpres are:-

1. index.php or home.php :- for home page or index page.

2. single.php :- for single post page.

3. page.php :- display the static pages.

4. category.php :- Display the category page.

5. archive.php :- For archive page display.

6. tag.php :- For display the tags page.

7. author.php :- For dispaly author page.

8. search.php :- For display the search result page.

9. 404.php :- For display 404 error page.

10. taxonomy.php :- For display the taxonomy archive.

11. attachment.php :- For managing the single attachments page.

12. date.php :- For managing date based archive.

13. header.php :- For managing top part of page.

14. footer.php :- For manage bottom part of pages.


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


12. What are the custom fields in wordpress?
 

We will add extra information to our post by using custom fields.Custom Fields are a form of meta-data that allows us 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); ?>


13. Can wordPress use cookies?

Yes, wordpress use cookies.WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users.

 

14. If we are hacked in wordpress but steps have to do for prevent it?
 
The various steps have to do when you hacked:-

1. Change passwords for all users, especially Administrators and Editors.

2. Re-install the latest version of WordPress.

3. Make sure all of your plugins and themes are up-to-date.

4. Install security plugins like wp security for safe from hacked.


 

15. What is the wordpress loop?
 

The Loop are php code used by WordPress to display posts. Using The Loop, WordPress processes each post to be displayed on the current page.


16. What is the special meaning of _sleep and _wakeup?

_sleeps return the array of all variables than need to be saved, while _wakeup retrives them.


17. How to pass a variable by value in wordpress?

Put an ampersand like C++ in front of, like $a=&$b.

 

18. Are there are limitations to a wordpress website?

No, still not. We can use wordpress for e-commerce site, membership sites, photo galelries, and any other type of site we think of.

 

19. How to disable wordpress comment?

Look in to dashboard under Options – Discussion. There is a checkbox there for “allow people to post comments on the article” Try unchecking that.
Also – you can do it in the box on the right in the Write screen. That only affects the one post, though.

 

20. Why wordpress is better than blogger for blogging?


1. Customization and Flexibility

2. Hosting Opportunities

3. To customize the tiny image that people see in their address bar when they visit your blog, upload a blavatar.

4. The more tag allows you to display excerpts of your posts on your main posts page, instead of revealing the entire post.

5. To expand the text editor and hide the modules on the publishing screen, enable Distraction Free Writing.

6. Reproduce fully-functioning tweets — not just static screenshots of tweets — in posts, pages, and even comments with Twitter Embeds.

7. You can customize your post and page slugs, which can be handy when you want to create a URL that’s easier to remember (it’s also a good way to make posts search-friendly). Note that if you change a post slug, the old link will still work.

 8. Reproduce fully-functioning tweets — not just static screenshots of tweets — in posts, pages, and even comments with Twitter Embeds.



Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments:

Post a Comment