Thank you for your reply. I finally started working on this, adding the function above to my theme’s functions.php. I can add the {featuredimage}
just fine, proving that the function itself works. See
However, I am failing at adding my own custom fields. You can see the proof of my failure by the my_tipos($id)
string printed below the featured image. I tried many combinations, and I would either get the strings printed or HTTP ERROR 500
when posting an update to the Discourse topic from the WP post.
// Get the custom fields and taxonomies that you want published from your post
How is this done? Could you provide an example, please? For what is worth, this is how that custom field is rendered in the post template:
$id = get_the_ID();
$type_of_action = my_tipos($id);
(...)
<span class="conf-action-type"><?php echo $type_of_action; ?></span>
The result in this case would be “CULTURA - PERIODISMO - EMANCIPACIÓN” – see the WordPress page.