Make a list with header and subtext in Gutenberg blocks

In general you have to do those things: Define you attributes Write a UI for the editor in the edit function, which saves values entered by the editor to your attributes Render the html with the save function by using the values from your attributes The tutorial from the official docs isn’t half bad: https://wordpress.org/gutenberg/handbook/designers-developers/developers/tutorials/block-tutorial/writing-your-first-block-type/

How to display a value from a radio button in the options menu in wordpress

Your form is sending data using POST method, so you should receive selected value of radio button in $_POST[‘colorSelect’]. To simply display it you can use: if(isset($_POST[‘colorSelect’])) echo $_POST[‘colorSelect’]; else echo “Nothing selected”; To save it to options table use following code at the start of your function colorSelector(): if(isset($_POST[‘colorSelect’])) update_option(‘colorSelect’, $_POST[‘colorSelect’]); So you can … Read more