Tagdiv Composer and PHP

Posted in: Newspaper
Post count: 5

Hi there,

I need advise on where to find or how to create a PHP file after using the TagDiv composer.

I’ve designed a layout using tagdiv composer with news, etc for the home page. I’ve also added a “Raw HTML” element on the top row of which I plan to insert a customize PHP code which extracts data from the Database as can be seen in the image: https://ibb.co/b2uLenimg

How do I find that php file or create a php file which will have the layout created so I can insert the PHP code?

Thanks.

Kind regards

Post count: 22421

Hello,

Unfortunately our theme does not allow adding php code directly in the theme so you will have to make a custom implementation. You can try a plugin that can offer this functionality but unfortunately I cannot recommend any as we have not tested such plugins.

Thank you!

Post count: 37

Instead of your approach I would write up your code and make the output work as a shortcode then you could add it in the html/text widget.

Post count: 5

Thanks Volnus. Will give that a try.

Post count: 24

Hi, how do you do this
Volnus: “Instead of your approach I would write up your code and make the output work as a shortcode then you could add it in the html/text widget.”

– where/how do i make the output of a php file work as a shortcode?

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.