img src is blank
-
Tried numerous different methods of inserting the author image into a blog template including the default from FAQ and none of them work.
Here’s the code as it is now (copied most of it from another support thread which says it’s working (and updated a missing bit)).
<?php if ( has_post_thumbnail() ) { ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php the_post_thumbnail('blog-thumbnail', array('class' => 'blog-thumbnail')); ?> </a> <?php } elseif ("" != get_the_author_meta('author_profile_picture')) { ?> <img src="<?php get_author_image_url(); ?>" alt="A Picture of $name" class="blog-thumbnail"/>'; <?php } else { ?> <div class="post-excerpt"><?php the_excerpt(); ?></div> <?php } ?>
Can send a link via email
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘img src is blank’ is closed to new replies.