Top WordPress Interview Preparation Guide
Download PDF

WordPress frequently Asked Questions by expert members with experience in WordPress (CMS). These interview questions and answers on WordPress will help you strengthen your technical skills, prepare for the interviews and quickly revise the concepts. So get preparation for the WordPress job interview

32 WordPress (CMS) Questions and Answers:

Table of Contents:

Top  WordPress (CMS) Job Interview Questions and Answers
Top WordPress (CMS) Job Interview Questions and Answers

1 :: How to use time ago function on wordpress posts?

<!---------------add code in function.php ------------------>
<?php
add_filter( \'the_content\', \'time_ago\' );

function time_ago ( $content ) {

$content .= \"
\" . __( \'Posted \', \'test\' ) . human_time_diff( get_the_time(\'U\'), current_time(\'timestamp\') ) . __( \' ago\', \'test\' );

return $content;

}
?>

2 :: How to create plugin for wordpress?

go to wp-content ->plugin->make a folder rahul
add_action( \\'admin_menu\\', \\'my_first_menu\\' );
function my_first_menu(){
add_menu_page( \\'Browser Title\\', \\'Menu Title\\', \\'manage_options\\', \\'rahul/myplugin-admin.php\\', \\'\\', plugins_url( \\'rahul/images/logo.png\\' ), 6 );
}

3 :: Why add_action() function not work in member function in wordpress?

try replacing :
register_widget(\\'test_function\\');
with:
add_action(\\'widgets_init\\', register_test_funtion\\');
function register_test_funtion() {
register_widget(\\'test_funtion\\');
}

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

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

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

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

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

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

10 :: Who is the founder of WordPress?

Matthew Charles Mullenweg.

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

12 :: 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

13 :: What does a special set of tags <?= and ?> do in PHP?

The output is displayed directly to the browser.

14 :: Explain the difference between include and require?

It’s how they handle failures. If the file is not found by require(), it will cause a fatal error and halt the execution of the script. If the file is not found by include(), a warning will be issued, but execution will continue.

15 :: Suppose I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?

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

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

17 :: How to define a constant?

Via define() directive, like define (“MYCONSTANT”, 100);

18 :: How to pass a variable by value in WordPress?

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

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

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

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

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

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

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

25 :: Tell me Are objects passed by value or by reference?

Everything is passed by value.
WordPress (CMS) Interview Questions and Answers
32 WordPress (CMS) Interview Questions and Answers