$post variables aren't outputting any data inside custom plugin.
-
How can I use
$post
variables inside a custom plugin?I’ve tried:
global $post; echo $post->post_title;
and:
the_ID();
But none of them output any data. How can those variables work inside a custom plugin? Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘$post variables aren't outputting any data inside custom plugin.’ is closed to new replies.