Viewing 16 replies (of 16 total)
  • Plugin Author Presslabs

    (@presslabs)

    Quick update for the previous code to take into consideration some edge-cases, please you this instead:

    <?php 
                        $toplytics_featured_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post ) );
                        if (is_array($toplytics_featured_image) && $toplytics_featured_image[0]) : ?>
                        <a class="toplytics-anchor" href="<?php echo $post['permalink']; ?>" title="<?php echo $post['title']; ?>" target="<?php echo ( isset( $target ) && $target ) ? $target : 'self'; ?>">
                            <img src="<?php echo $toplytics_featured_image; ?>" alt="<?php echo $post['title']; ?>" />
                        </a>
                    <?php endif; ?>
Viewing 16 replies (of 16 total)
  • The topic ‘Upload Auth Config File: do not work’ is closed to new replies.