Post Format Link using Guttenberg

There are a number of problems here, lets go through them one by one 1. Functions that return stuff, and Functions that output stuff get_the_content doesn’t output anything, it returns it. So you need to echo it for the results to be visible: echo get_the_content(); Functions that start with get_ almost always return a value. … Read more

How to use code in an editor block?

The easy way would be to create a Shortcode in the functions.php file of your theme and then use it in Gutenberg. Gutenberg has a built-in block to add shortcodes. Basically, you will add the following code to your functions.php file, function get_forum_post_information( $atts ) { // The PHP Code that you want to execute … Read more