Default image (if the user has not uploaded)
-
Good day!
Please tell me whether it is possible in the absence of the image to add any other. For example, the image of the defaul WP or any other.
Perhaps in the template below can I add a direct link to the image when the word if the image is not provided to the user?<?php if ( $thumbnail && has_post_thumbnail( $post->ID ) ) : ?> <div class="photo"><?php echo get_the_post_thumbnail( $post->ID, 'thumbnail' ); ?></div> <?php endif; ?>
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Default image (if the user has not uploaded)’ is closed to new replies.