php function
-
Hi. I’ve just installed the plugin and added it to my php code as php function.
For test purpose I wrote it as below:
if(get_field(‘gpsies_link’))
{
echo ‘<p>TEST1</p>’;
echo gpx_view(array(‘https://somesitename.eu/wp-content/uploads/gpsfilename.gpx’ => $filepath
, ‘title’ => $track_name
, ‘red’ => $track_color
, ‘200’ => $track_width ));
echo ‘<p>TEST2</p>’;
}I would like to use it with connection to the “Advanced Custom Fields” plugin but currently hardocded gpx url for example.
But the function return empty string. Ctrl+U page’s source looks like:
<p>TEST1</p><p>TEST2</p>
Nothing between TESTS strings.
I tried, to remove “echo” function – the same empty result.
Could You, please show me some real example for it?
- The topic ‘php function’ is closed to new replies.