You need to get the various objects related to the current post, such as WP_Term, image attachment WP_Post, and WP_User. Use functions like wp_get_post_categories() and get_posts() and get_user_by(). If you experimentally var_dump() returned data, it’ll show you all the object property names and values. Then you can add code to your code’s widget() method similar to echo $wp_term->name;
Please, where can i get list of these wordpress term name?
I got some thumbnail function code which i placed in my function.php.
https://pastebin.com/4rMCk5dM
Is it the right approached? If yes, how do i echo it in my widget?
Is it proper to write it like this?
<?php echo get_post_thumbnail_id()?>
I have a complete copy of my widget code here https://pastebin.com/QGVUCJct. Kindly help me take a look at it and let me know how to resolve the whole things? Only take cognizance of Category ID category name, Author ID and Author Name, image ID url, Date id and date url