How to show uploaded image in frontend vendor dashboard?

Viewed 107

I'm try to show vendor uploaded QR code in vendor dashboard.(Check screenshot 1)

Screenshot 1

screenshot 1


Source Code

 add_action( 'dokan_dashboard_right_widgets', array( $this, 'get_qr_code_widget' ), 10 );

 public function get_qr_code_widget() {
   if ( ! current_user_can( 'dokan_view_sales_report_chart' ) ) 
{
            $new_qr= get_field( 'new_qr', 'Vendor');
            $Image3_URL=wp_get_attachment_url($new_qr);
            return;
        }

        echo '<img src=" '.$Image3_URL.'" width="200" height="200" alt="Lanka QR" ';
}

This is my advance custom field details.(Please Check screen shot 2, 3 & 4)

screenshot 2 screenshot 2

screenshot 3 screenshot 3

screenshot 4 screenshot 4

WordPress vendor form details.(Please Check screen shot 5)

screenshot 5

I tried so many codes but nothing work, if anyone can help me really appreciate it.

1 Answers
Related