Title: embedding shortcode in custom HTML
Last modified: February 16, 2023

---

# embedding shortcode in custom HTML

 *  Resolved [marcvl64](https://wordpress.org/support/users/marcvl64/)
 * (@marcvl64)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/embedding-shortcode-in-custom-html/)
 * I’m struggling to embed a snippet shortcode in a custom HTML block. The snippet
   doesn’t resolve correctly. I’m using code snippets to retrieve latitude and longitude
   coordinates through a RESTapi and use these to create a Google Maps display. 
   When I add a shortcode to a dedicated Shortcode block it resolves without issues(
   you can see that on the above webpage, below the Google Maps custom html block).
   What is the right process of including a snippet inside a custom html block?
    -  This topic was modified 3 years, 3 months ago by [marcvl64](https://wordpress.org/support/users/marcvl64/).
      Reason: User error. It works as expected
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fembedding-shortcode-in-custom-html%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘embedding shortcode in custom HTML’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [marcvl64](https://wordpress.org/support/users/marcvl64/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/embedding-shortcode-in-custom-html/)
 * Status: resolved