Is there any way to concatenate while loop inside the string? Basically, I need a string of HTML and there is some Metadata I want to retrieve from custom post type and want to store that data into HTML. thanks in advance for your help. Answer If you need to return html code, we can form that code first, put
Tag: wordpress-gutenberg
Custom Endpoint API based on attribute gutenberg block
Viewed 4 times 0 I need to return all posts that have the value of a specific attribute that is saved in the custom block attributes gutenberg. This value in the query will be according to the endpoint below. http://idinheiro.local/wp-json/idinheiro/v1/blocks-posts/id-here-attribute-gutenberg-block below my callback function. In short, how do I look for this attribute and put it there in get_posts? Register
How to use get_theme_mod in gutenberg editor wordpress?
In my old WordPress themes (before Gutenberg) I used get_theme_mod to get custom values for certain things in the theme. get_theme_mod( ‘news_custom_headline’ ); Now I would like to use the gutenberg …
How to disable Gutenberg / block editor for certain post types?
WordPress added Gutenberg / block editor in its 5th version and it’s enabled by default for Post and Page post types. It might be enabled by default for all custom post types in close future so as a WordPress developer I want to know how to disable this editor for my own custom post types? I want to keep classic