Getting block styles when the block is loaded from another page
-
So let’s say I have a page called YYY where I’d like to load content from a page called NNN. The content of the page NNN contains UAG blocks.
I will load the content from the page NNN using
get_pages()
and doapply_filters('the_content', $content);
. Then I’ll print that content.Now, on the page YYY I have content from both these pages. The only problem is that since the content from YYY contains UAG blocks, their styles aren’t loaded because I’m not on the page those blocks actually belong to. If I visit the actual page YYY, the styles are loaded as expected.
Is there a way to get the styles when fetching content with PHP?
This is very important when building a one page site from separate pages.
- The topic ‘Getting block styles when the block is loaded from another page’ is closed to new replies.