| bio | website | wendari.com |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 1 year, 1 month |
| seen | Apr 27 '12 at 15:31 | |
| stats | profile views | 0 |
|
Apr 22 |
comment |
How to get the post-ID in my plugin? thank 4 thinking about it, but "Jan" is just me ;) when i do it that way the id is not always transfered.. :S |
|
Apr 22 |
comment |
How to get the post-ID in my plugin? this: global $wp_query;
$postid = $wp_query->post->ID;
if ($postid == '') :
echo 'NO-ID, ';
else :
echo get_post_meta($postid, 'page_theme', true) .', ';
endif;
returns:
NO-ID, NO-ID, NO-ID, NO-ID, NO-ID, NO-ID, NO-ID, cuttlefish, cuttlefish, |
|
Apr 22 |
asked | How to get the post-ID in my plugin? |