get id inside CoAuthorsIterator
-
... i = new CoAuthorsIterator(); $i->iterate(); the_author_posts_link(); if (get_user_roles(get_the_author_meta(ID)) == 'temp-author') { ...the get_the_author_meta(ID) in wp debug mode says –
otice: Use of undefined constant ID – assumed ‘ID’ in /var/www/bayadaim/wp-content/themes/bayadaim/functions.php on line 239i’m trying to figure out how to get the ID of the author.
thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘get id inside CoAuthorsIterator’ is closed to new replies.