Get template function without output
-
In my plugin, I’m looking to get the result of the_ID() without outputting it to the screen. Currently the only method I can find is using a PHP buffer, but there must be a better way.
Can anyone suggest something different?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get template function without output’ is closed to new replies.