Hi Nick,
Would you be able to provide a code snippet of your implementation? This will allow me to do some testing and diagnose on my end.
Block visibility is applied using the render_block
filter based on block attributes. From my understanding, get_the_content()
pulls the post content directly from the database but does not pass it through the the_content
filter. More info here.
I did a quick test using:
1. echo get_the_content();
2. echo apply_filters( 'the_content', get_the_content() );
- Using just
get_the_content()
did not trigger the visibility settings and also did not render a bunch of other blocks correctly in my testing. Looks like all the dynamic blocks were not rendered.
- However, passing
get_the_content()
through the the_content
filter and everything worked as expected.
I look forward to hearing from you.
Best,
Nick
-
This reply was modified 2 years, 5 months ago by
Nick Diego.