How to Display the Child Pages outside the Parent Theme?

We’ve been talking with a couple of customers that are using Rosa, and they pointed out that it’s better not to have the content of child pages available in two different places: self-page and inside the parent.

That’s why, a few versions back, we changed the structure of the theme, and the child pages were displayed inside the parent, not separate.
This change happened made as an improvement for SEO.

However, some customers wanted to present the child pages inside the parent page and separate too. There’s an easy way to do this change. You just need to copy this line of code:

PHP

add_filter( ‘pixelgrade_multipage_allow’, '__return_false' );

in functions.php file. There’s one more thing you have to do. Go to WordPress Dashboard→ Settings → click on Permalinks and hit Save changes. This will flush the permalinks and apply the change.

Updated on April 19, 2017

Was this article helpful?

Related Articles