Get title color from category custom field

In the documentation, it looks like you can provide the term object to get_field(), however I’ve tended to use either taxonomy_#termid or term_#termid for example $color = get_term(‘color’, ‘category_1234); or $color = get_term(‘color’, ‘term_1234); If those down’t work, then I’d check: That your ACF field name is definitely color (and not colour, as I would … Read more

Can I use WP blocks in a template?

2 methods do_blocks, takes block content as a string, parses them, renders each block, then returns the final rendered content. This is the same content in post_content, aka the HTML comment and the HTML tags inside it e.g. something similar to this: echo do_blocks( ‘<!– wp:paragraph –><p>Hello world.</p><!– /wp:paragraph –>’); Use a block template part … Read more