WPGut – Updating failed and shortcode?

As Tom pointed out, the reason you are seeing that error is you shortcode is not returning your desired output, but rather outputting it right in place. This results in a breaking of the REST API and you seeing that error message. Simple fix: function register_form_template_f() { return ‘<h1>Hello World! register</h1>’; } add_shortcode(‘register_form_template’, ‘register_form_template_f’);

Use atributes of shortcode in get template part

The $atts in your template part (templates/show-taxonomy.php) that you passed to shortcode_atts() is not defined, so you need to define it by passing it via the third parameter for get_template_part() like this: get_template_part( ‘templates/show-taxonomy’, ”, array( ‘atts’ => $atts ) ); Then in the template part, use $args[‘atts’] to access the shortcode parameters: $atts = … Read more

Return all Tags and Categories in Separate List

how I can get the categories from the same global search You can add a taxonomy attribute to your shortcode and then pass the value to get_query_terms_list(), like so: add_shortcode( ‘bd_terms_list’, ‘bd_terms_list_custom_callback’); function bd_terms_list_custom_callback( $args ){ $atts = shortcode_atts( array( // list of default attributes ‘taxonomy’ => ‘gd_place_tags’, ‘sep’ => ”, // optional, but you … Read more