Title: HTML bug in the code
Last modified: September 30, 2022

---

# HTML bug in the code

 *  [szekitom](https://wordpress.org/support/users/szekitom/)
 * (@szekitom)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/html-bug-in-the-code/)
 * Hi,
    I found a bug in your theme. In the hook.php -» function newses_banner_exclusive_posts().
   The post thumbnail code wrong: **<img class="img" **<?php echo the_post_thumbnail();?/
   >
 * It puts the image tag twice in the code.
 * eg. **<img class="img" <img **width=”1920″ height=”1080″ src=”[http://cigam.infora.hu/wp-content/uploads/2022…/uploads/2022/09/Gyereket-a-magasba-1536×864.jpg](http://cigam.infora.hu/wp-content/uploads/2022…/uploads/2022/09/Gyereket-a-magasba-1536×864.jpg)
   1536w” sizes=”(max-width: 1920px) 100vw, 1920px” />
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhtml-bug-in-the-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [supportansar](https://wordpress.org/support/users/supportansar/)
 * (@supportansar)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/html-bug-in-the-code/#post-16058341)
 * Hi,
 * Thanks for contacting us and Thanks for finding this issue, we will fix and released
   this issue in the next update
 * Thanks
 *  Thread Starter [szekitom](https://wordpress.org/support/users/szekitom/)
 * (@szekitom)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/html-bug-in-the-code/#post-16059029)
 * Tnx, the fast answer! But, one more thing…
 * Why add the “alt” parameter to the “a” tag in the template-tags.php?
 *     ```
       $output .= '<a>. '" alt="' . esc_attr(sprintf(__('View all posts in %s', 'newses'), $post_category->name))</strong> . '"> 
                                        ' . esc_html($post_category->name) . '
                                    </a>';
       ```
   
 * As far as I know, this tag has no “alt” parameter.
    -  This reply was modified 3 years, 8 months ago by [szekitom](https://wordpress.org/support/users/szekitom/).
    -  This reply was modified 3 years, 8 months ago by [szekitom](https://wordpress.org/support/users/szekitom/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HTML bug in the code’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/newses/2.0.0.77/screenshot.jpg)
 * Newses
 * [Support Threads](https://wordpress.org/support/theme/newses/)
 * [Active Topics](https://wordpress.org/support/theme/newses/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/newses/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/newses/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [szekitom](https://wordpress.org/support/users/szekitom/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/html-bug-in-the-code/#post-16059029)
 * Status: not resolved