WordPress Interview Questions

Want to become an expert in cracking WordPress interview questions?

Start with practicing the questions below. Whether a question involves multiple choice or live coding, we will give you hints as you go and tell you if your answers are correct or incorrect.

After that, take our timed public WordPress Interview Questions Test.

To use our service for testing candidates, buy a pack of candidates.


1. Homepage
WordPress Themes Public

A WordPress theme contains, among other things, all the files listed below. Which of these files will be used to display the homepage after this theme is activated?

Easy  
1min
page-front.php
front-page.php
home.php
index.php
   

2. Valid Queries
WordPress Queries Public

Which lines of code are valid?

Easy  
2min
$query = new WP_Query( array( 'p' => 7 ) );
$query = new WP_Query( array( 'post_in' => array(7) ) );
$query = new WP_Query( array( 'post__in' => array(7, 12) ) );
$query = new WP_Query( array( 'tax_query' => array( array( 'taxonomy' => 'books', 'terms' => 'drama', 'field' => 'slug' ) ) ) );
$query = new WP_Query( array( 'post_parent' => 'contact' ) );
   

3. Theme Header
WordPress Themes Public

Select all the actions that the following line of code does when used inside a WordPress theme's index.php file.

<?php get_header("home"); ?>
Easy  
3min
It loads a file named home.php.
It navigates to the home page of your theme.
It loads a file named header-home.php.
If the requested file is not found, get_header will attempt to locate header.php.
   

If you feel ready, take one of our timed public WordPress Interview Questions tests:
  • PHP and WordPress Online Test (Easy / Hard)
Not exactly what you are looking for? Go to our For Jobseekers section.