Using block editor instead of classic

Hello, we’re having the same issue as in this topic Block Editor instead of Classic Editor (using a third party theme)

Unfortunately there’s no solution in the mentioned post, we’re using Astra theme and when editing a listing it’s using the classic editor instead of blocks.

Hi,

This is how it should work by default so that it does not match the frontend. If you have only administrators adding listings, you can use this snippet to enable the block editor (How to add custom code snippets - HivePress Help Center):

add_filter(
	'hivepress/v1/post_types',
	function( $post_types ) {
		$post_types['listing']['show_in_rest'] = true;

		return $post_types;
	},
        1000
);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.