You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.
Hi! I created a few blocks using the plugin earlier on (it's really great!) but noticed that they are not echoed if the content of the page\post is returned using using the get_post_field function.
Here's a very summarised version of the relevant code:
I had no particular reason not to use the loop - in fact I switched to it and now everything is working perfectly (and I am very much enjoying my custom blocks) 👍
I opened the issue for your reference, mostly.
Other than that, using block_field() had no effect, sadly: the content wouldn't still be echoed.
Hi! I created a few blocks using the plugin earlier on (it's really great!) but noticed that they are not echoed if the content of the page\post is returned using using the get_post_field function.
Here's a very summarised version of the relevant code:
$id = get_the_ID();
$wp_content = get_post_field("post_content",$id);
echo $wp_content;
The "normal" content of the post is displayed correctly, the custom blocks are not.
Displaying the content in an alternative way (e.g. using the loop) makes them appear correctly, on the other hand.
Cheers!
The text was updated successfully, but these errors were encountered: