JOBSEEKER?

WordPress Interview Questions

Practice for WordPress interviews by solving TestDome questions. Our interview questions are used by more than 7,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

Need to practice your WordPress skills for an upcoming job interview? Try solving these WordPress interview questions that test knowledge of the WordPress API, themes, queries, and other skills. We’ll provide feedback on your answers, and you can use a hint if you get stuck.

These WordPress interview questions are examples of real tasks used by employers to screen job candidates such as WordPress developers, PHP developers, web developers, and others that need to be familiar with the WordPress API and architecture, and be able to create extensions for WordPress, such as themes and plugins.

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.
Dashboard Start Trial Sign In Home Tour Tests Questions Pricing For Jobseekers