Archived topic
Template or hook for PHP code
1 reply · Started by Jörgen on November 10, 2017
I want to add som php code from a real estate listing API.
What is the best and easiest way to do it?
I know it can be done with a custom template which I have never tried. And if so I need to use a child theme, right?
Is it possible to do using; Inside Content Container hook, with a conditional in some way for the actual page?
Or maybe create a plugin? Or another way I have not thought about?
Hi there,
Something like this inside the hook should work: https://generatepress.com/forums/topic/executing-a-hook-on-a-specific-page-is-this-possible/#post-419034