Gutenberg – render_callback does not pass ToggleControl value on frontend

Really having to have this fixed, I used this not-so-elegant workaround that works perfectly. It is bound to the base-name I use for my blocks: add_filter(‘render_block_data’, function($parsed_block, $source_block, $parent_block) { if(strpos($parsed_block[‘blockName’], ‘my-base-name/’) !== false && isset($parsed_block[‘attrs’]) && is_array($parsed_block[‘attrs’])) { foreach($parsed_block[‘attrs’] as $key => $val) { if($val === true) { $parsed_block[‘attrs’][$key] = ‘1’; } elseif($val === … Read more

Create guest author page via php

Custom fields don’t have an archive template so you may wish to consider using a custom taxnomy, where the terms are the names of your guest authors. I think this is quicker and easier than messing around with custom templates on pages, less code wrangling and complexity. Naturally if you have lots of posts with … Read more