Answer the question
In order to leave comments, you need to log in
How to display a field from Advanced Custom Fields in TablePress?
There is an article page. It has a field (from the Advanced Custom Field plugin).
There is a main page.
There is a TablePress plugin.
You need to create a table in TablePress. And bring it to the main page. The table will display the fields of certain articles.
I can't render fields in TablePress. For some reason, the php code turns into an html comment. And the fields are not displayed. How to display fields?
Answer the question
In order to leave comments, you need to log in
This will not work, when creating posts, php-code is not executed in the content. You can read this article to understand the general principle.
I doubt that anyone other than the developer himself will be able to immediately tell which hooks in the TablePress plugin are responsible for rendering content, so you will have to arm yourself with documentation and dig through the code in search of them
Consider what you create a very big hole in the security of the site
And finally, my advice to you: write your shortcode with a custom request wp_query()
, it will work faster and more correctly
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question