Title: Help With Embed
Last modified: December 31, 2018

---

# Help With Embed

 *  [uncommondepth](https://wordpress.org/support/users/uncommondepth/)
 * (@uncommondepth)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/help-with-embed/)
 * I have used an embed code from artworkarchive.com previously which works just
   fine as seen on this page:_[ redundant link removed ]_, but I am trying to set
   up a new page and can not get the code to work now.
 * Does anyone know why, or what I might be doing wrong? I cloned the paintings 
   page in an attempt to get it to work, but it still doesn’t. Help!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhelp-with-embed%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/help-with-embed/#post-11038574)
 * Embed codes added to page content are prone to being corrupted by the editor.
   The reliable way to add embed code is either make it into a [shortcode](https://codex.wordpress.org/Shortcode_API)
   or add it to a custom page template (based on page.php template). To have a template
   only apply to one page, name it something like _page-new-works.php_.
 *  Thread Starter [uncommondepth](https://wordpress.org/support/users/uncommondepth/)
 * (@uncommondepth)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/help-with-embed/#post-11053948)
 * Thanks. I don’t know how to do shortcode.
 * Why does WordPress have to get more and more impossible for the average person
   to use? I’ve been using WP since it’s early days but you have to be full fledged
   programmer anymore to do things which used to be straightforward and simple. 
   Sorry for venting my frustration. 🙁
    -  This reply was modified 7 years, 5 months ago by [uncommondepth](https://wordpress.org/support/users/uncommondepth/).
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/help-with-embed/#post-11055722)
 * At it’s simplest, you could add this to functions.php of your theme:
 *     ```
       add_shortcode( 'artwork', function () {
           return 'Your embed code goes here';
       });
       ```
   
 * Maintain the single quotes in my example which delimit the embed code. If your
   embed code has any single quotes within, insert a backslash `\` in front of each
   occurrence.
 * In the post where you want the embed to go, type in _[artwork]_. WP will replace
   this with the embed code from the above code. Shortcodes can be much more elaborate.
   If you have a number of different embeds, you could supply some unique identifier
   like an archive ID so one shortcode can work for any number of different archives.
 * I understand your frustration over WP not being as simple as you would like. 
   There’s always a trade off between simplicity and flexibility. I personally prefer
   having flexibility at the cost of simplicity, YMMV. I’d rather have to learn 
   a little bit of programming in order to do what I want than not be able to do
   it at all. Of course we would prefer to get what we want without any programming,
   but given the vast range of possibilities, it’s not realistic.

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

The topic ‘Help With Embed’ is closed to new replies.

## Tags

 * [embed](https://wordpress.org/support/topic-tag/embed/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/help-with-embed/#post-11055722)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
