How to Display the Child Pages outside the Parent Theme?

We’ve been talk­ing with a cou­ple of cus­tomers that are using Rosa, and they point­ed out that it’s bet­ter not to have the con­tent of child pages avail­able in two dif­fer­ent places: self-page and inside the par­ent.

That’s why, a few ver­sions back, we changed the struc­ture of the theme, and the child pages were dis­played inside the par­ent, not sep­a­rate.
This change hap­pened made as an improve­ment for SEO.

How­ev­er, some cus­tomers want­ed to present the child pages inside the par­ent page and sep­a­rate too. There’s an easy way to do this change. You just need to copy this line of code:


add_filter( ‘pixelgrade_multipage_allow’, '__return_false' );

in functions.php file. There’s one more thing you have to do. Go to Word­Press Dash­board→ Set­tings → click on Perma­links and hit Save changes. This will flush the perma­links and apply the change.

This article applies to Rosa, as they share the same underlying structure.

Updated on April 19, 2017

Was this article helpful?