How insert php code inside single post?

Posted in: Newspaper
Post count: 3

Hi, I need to implement an HTML table that contains some attributes in php format about a post in a single post.

Example:

<table>
<tr>
<th> User </th>
</tr>
<tr>
<td> <? php the_field ('user'); ?> </td>
</tr>
</table>

For make this, I’ve support of ACF plugin (https://www.advancedcustomfields.com/resources/)
In another wordpress template that I had before, this code had it incorporated into the body of the post, but on this theme I don’t know where I can insert it, or if I can perhaps insert it through td composer, how could I do it? thanks.

Post count: 18283

Hello !

You can insert it via the tagDiv Composer Column text element. The shortcode must be inserted in the Text tab of the column text element as you can see it here: https://www.screencast.com/t/zJDUVBGK

Thank you !

Post count: 13

It’s only loading no editor is opening.
Also didn’t find the column text.
https://www.screencast.com/t/x0FxzTvaKT

Post count: 18283

Hello !

Please make sure that you have accomplished all the system requirements as in our documentation here: https://forum.tagdiv.com/requirements-for-newspaper/

Thank you !

Post count: 3

Hi, thanks for the help,

I tried to put the code in the block you mentioned, but it doesn’t work with PHP. When I enter the code it automatically comments to me by adding <! – ->

what should I do?

Thanks!

Post count: 13

Here I attached my system status. Not solved yet.

https://www.screencast.com/t/QtBzksMJ4wpb

Post count: 18283

Hello !

Please contact us via email at contact@tagdiv.com and provide the following:

– admin url and credentials
– cPanel url and credentials
– A link to this topic in order to identify you

Our team will take a look !

Thank you !

Post count: 3

and my problem?

How should I do to put PHP code inside template?

Thanks

Post count: 18283

Hello !

You can achieve that only by editing the code. That will require coding skills in identifying the correct file needed to edit and where to edit it.

Please note that this represents custom work and is not covered by the support team.

Thank you !

Post count: 13

Hello,
I sent the email but didn’t get any response yet!

Thanks,
Asad

Post count: 18283

Hello !

Please let us know your e-mail address in order to search it, maybe it got into spam.

Thank you !

Post count: 13
Post count: 35449

Hi asadcj,
Sorry for the late answer, the email it got into spam.
Thank you!

Viewing 13 posts - 1 through 13 (of 13 total)
The forum ‘Newspaper’ is closed to new topics and replies.