Get users that likes the post

It appears that you are storing the data in the post’s meta, not user’s meta. Therefore, you need to retrieve it by directly getting the meta for that post, not by doing a user query. Let’s say your post’s ID is $post_id: First, retrieve the meta by get_post_meta(): $users = get_post_meta ( $post_id, ‘post_liked_users’, false … Read more

How to display pictures from database?

You’ll want to use wp_get_attachment_image_url() or wp_get_attachment_image(). You just pass them the ID of the image in the database and the size you want. wp_get_attachment_image_url() gives you the URL of the image: echo wp_get_attachment_image_url( $attachment_id, ‘large’ ); // http://example.com/wp-content/uploads/2017/01/image-1024×1024.jpg While wp_get_attachment_image() gives you a full image tag: echo wp_get_attachment_image( $attachment_id, ‘large’, false, [ ‘class’ => … Read more

Where these .js file come to source code?

they’re wp_enqueue_script() scripts. You can remove them (if you’re positive nothing uses them) with wp_dequeue_script() similar to the following: add_action( ‘wp_enqueue_scripts’, function() { wp_deregister_script( ‘jquery’ ); wp_deregister_script( ‘wp-embed’ ); }, 99 ); or with add_filter( ‘wp_default_scripts’, function(&$scripts){ if(!is_admin()) { $scripts->remove( ‘jquery’ ); $scripts->remove( ‘wp-embed’ ); } } );