Interview Questions

1. What is the best way to display a list of child pages in WordPress?

Shortcodes are convenient, but they require you to add them to every page that has a parent or a child page. You may end up using shortcodes on a lot of pages, and you may even forget to do it. It would be beneficial to alter the page template file in your theme so that child pages will be displayed automatically. This can be achieved by editing the main page.php template, or by creating a custom page template in your theme.

By Md Riyazuddin 2 0
Is this helpful? Yes No

Submit an interview question

Submitted questions and answers are subject to review and editing, and may or may not be selected for posting, at the sole discretion of w3Sniff.

Get Started

Comments

Leave a Comment


Check out more interview questions

Based on your skills

MS SQL Server

89936 1720 3 860

Angular

2425 92 0 46

Wordpress

1883 72 0 36
AD Ad-Free