Show dashboard sidebar on create listing and edit listing pages
I want to show the dashboard sidebar on the create and edit listings pages. I've added this line at the bottom of 'create-listing.php' in my child theme:
appthemes_load_template( 'sidebar-dashboard.php', $args );
. But it doesn't show the details for the current user.
What do I need to add to the template to get the current user id?