Magic tag output to PHP
-
Hi Support,
I have been struggling for days to get this simple thing right with no luck. Please could someone suggest a way to make this happen.
I have a shortcode or php snippet to show my ratings in the list view of a pod.
[ratings id=”1″ results=”true”] or
<?php if(function_exists(‘the_ratings_result’)) { the_ratings_result(); } ?>I am attempting to pass the value of the magic tag {@ID} – the current post ID to the id field in the rating shortcode/php snippet.
It seems that the {@ID} outputs a string and not a numeric. I have tried both int() and intval functions to change the value of the magic tag to numeric, but each way, either get a NULL or int(0) returned.
Is this possible at all?
Regards,
Media-X
- The topic ‘Magic tag output to PHP’ is closed to new replies.