Title: Shortcode in HTML
Last modified: February 27, 2020

---

# Shortcode in HTML

 *  Resolved [revivalz71](https://wordpress.org/support/users/revivalz71/)
 * (@revivalz71)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-html-2/)
 * Hello
 * Shortcode not working in html, how to fix? thank you in advance.
 * `<a href="[wbcr_snippet id="285"]">Download Here</a>`

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

 *  [Temyk](https://wordpress.org/support/users/webtemyk/)
 * (@webtemyk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-html-2/#post-12489610)
 * Hello.
 * Do you want to use a shortcode in a snippet? Shortcodes don’t work in snippets.
   You can do this:
    `<a href="<?php echo do_shortcode('[wbcr_snippet id="285"]')?
   >">Download Here</a>`
 *  Thread Starter [revivalz71](https://wordpress.org/support/users/revivalz71/)
 * (@revivalz71)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-html-2/#post-12489633)
 * Hello,
 * No i don’t want to use shortcode in snippet, i want to use the shortcode in html.
 *  [Temyk](https://wordpress.org/support/users/webtemyk/)
 * (@webtemyk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-html-2/#post-12489642)
 * Where exactly is this HTML located? in the text of the post?
 *  Thread Starter [revivalz71](https://wordpress.org/support/users/revivalz71/)
 * (@revivalz71)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-html-2/#post-12489646)
 * I using the Elementor HTML Elements.
 * > [View post on imgur.com](https://imgur.com/a/MJn9hrc)
 *  [Temyk](https://wordpress.org/support/users/webtemyk/)
 * (@webtemyk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-html-2/#post-12489690)
 * I tried it on my site, the shortcode worked in Elementor HTML Elements.
 * Is there a void instead of a shortcode, or is the shortcode itself displayed?
 *  Thread Starter [revivalz71](https://wordpress.org/support/users/revivalz71/)
 * (@revivalz71)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-html-2/#post-12489713)
 * There is 2 html element in elementor, after switching to “Custom HTML” element,
   it’s now working.
 * Thanks.

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

The topic ‘Shortcode in HTML’ is closed to new replies.

 * ![](https://ps.w.org/insert-php/assets/icon-256x256.gif?rev=3475630)
 * [Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts](https://wordpress.org/plugins/insert-php/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-php/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-php/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-php/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [revivalz71](https://wordpress.org/support/users/revivalz71/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/shortcode-in-html-2/#post-12489713)
 * Status: resolved