Include shortcodes or php-files/pages in main post index start page

I would like to do the following:

  1. Use Theme X
  2. Use Child Theme X
  3. Use the default masonry index start page (with 3 rows of masonry cards) and the default pagination
  4. Add some Custom-rows below (I think I can do that by using is_home())
  5. Add one row/section above the main post cards WHICH is using (short)code from Cornerstone or another Page Builder

Here if have got an issue.
I can create a Page and use a Page Builder (e.g. Cornerstone) for this page’s content. If I go to source, I can see the shortcodes.
But if I try to copy these shortcodes and echo this withing the php code of the regarding theme file (I think something like wp-index.php) these shortcodes are not parsed/interpreted correctly.
Do you maybe know any workaround?
Or would it be possible to include a created page (e.g. called testpage), which echos this shortcodes correctly (e.g. http://localhost/example/testpage) within my main blog post start page (which means index -> http://localhost/example)?

Thanks a lot in advance!

Hi There,

Please check this two guides on customization.


https://theme.co/apex/forum/t/customizations-actions-and-filters-in-x/208

Try to use the action filter instead of editing the wp-index.php as stated on the guide. The code just need to be added on your child theme’s functions.php file. Let us know how this goes.