Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

grizzam on "$post variables aren't outputting any data inside custom plugin."

$
0
0

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 all articles
Browse latest Browse all 8245

Trending Articles