WordPress Interview Questions

Practice for WordPress interviews by solving TestDome questions. Our interview questions are used by more than 6,000 companies and 450,000 individual test takers.

Jobseekers: Certify Your Knowledge

Take a Certification Test

Companies: Use Our Tests for Screening

Buy a Pack Of Candidates

Try to solve 3 WordPress interview questions below. Hints can help you find answers to questions you are having trouble with.

1. Homepage

Themes
   
Easy  

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?

   


2. Theme Header

Themes
   
Easy  

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"); ?>

(Select all acceptable answers.)

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.
   


3. Valid Queries

Queries
   
Hard  

Which lines of code are valid?

(Select all acceptable answers.)

$query = new WP_Query( array( 'p' => 7 ) );
$query = new WP_Query( array( 'posts_per_page' => 'twelve' ) );
$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( 'search' => 'contact' ) );
   


If you feel ready, take one of our timed public WordPress Interview Questions tests:
PHP

PHP and WordPress Online Test (Easy / Hard)

Not exactly what you are looking for? Go to our For Jobseekers section.