L
L
Lyubov Ivanova2018-03-23 20:16:24
Twig
Lyubov Ivanova, 2018-03-23 20:16:24

How to display additional wordpress fields in twig?

Hello. I'm injecting my template into a WP plugin, the problem is that the plugin uses twig....
I need to display an additional field in the right place, in normal php it's simple and the output of shortcodes
<?php echo get_field("название-поля"); ?>

<?php echo do_shortcode(get_field("какоетоназвание")); ?>

how to rephrase it in twig?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question