Title: Incorrect shortcode
Last modified: August 22, 2016

---

# Incorrect shortcode

 *  Resolved [barkgj](https://wordpress.org/support/users/barkgj/)
 * (@barkgj)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/incorrect-shortcode-1/)
 * Hi,
 * In the private sample content, the default content shows up as:
 * ————
 * Use this like normal post content. The recipe will automatically be included 
   at the end of the post, or wherever you place the shortcode:
 * [recipe]
 * This text will appear below your recipe.
 * ————
 * This is incorrect; the shortcode used in the plugin should be:
 * [ultimate-recipe], not [recipe]
 * ————
 * See your code:
 * class WPURP_Recipe_Shortcode {
 *  public function __construct()
    { add_shortcode( ‘ultimate-recipe’, array( $this,‘
   recipe_shortcode’ ) ); }
 * Please fix.
 * Gert-Jan
 * [https://wordpress.org/plugins/wp-ultimate-recipe/](https://wordpress.org/plugins/wp-ultimate-recipe/)

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

 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/incorrect-shortcode-1/#post-5199480)
 * Hi Gert-Jan,
 * Actually, it should be [recipe] as it says, the [ultimate-recipe] shortcode is
   used to include recipes in normal posts or pages, the [recipe] shortcode to change
   the location of the recipe box in a recipe post, by default it shows up at the
   end.
 * Kind regards,
    Brecht
 *  Thread Starter [barkgj](https://wordpress.org/support/users/barkgj/)
 * (@barkgj)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/incorrect-shortcode-1/#post-5199483)
 * Hi, ok, excuse me but where exactly is the add_shortcode defined for the “recipe”
   shortcode? I couldn’t find it anywhere, and in our site the shortcode is not 
   being rendered (where-as the shortcode for ultimate-recipe is), so I must be 
   missing something here… Could you pinpoint me to the right direction?
 * Thanks!
    GJ
 *  Thread Starter [barkgj](https://wordpress.org/support/users/barkgj/)
 * (@barkgj)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/incorrect-shortcode-1/#post-5199486)
 * O, I figured it out; its not really a shortcode, but hard coded in the plugin
   as a replace… ok, *bummer*. Any reason why not simply use a shortcode there?
   
   GJ
 *  Plugin Author [Brecht](https://wordpress.org/support/users/brechtvds/)
 * (@brechtvds)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/incorrect-shortcode-1/#post-5199488)
 * Indeed, it’s not really a shortcode, it’s only used to position the recipe box
   and isn’t required either.
    This is only supposed to work within a Recipe custom
   post type. I didn’t make it an actual shortcode as to not interfere with other
   plugins.
 * Does it work if you don’t use the [recipe] in your post? It should show up at
   the end in that case.
 *  Thread Starter [barkgj](https://wordpress.org/support/users/barkgj/)
 * (@barkgj)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/incorrect-shortcode-1/#post-5199527)
 * Ok, I managed to display the recipe 🙂 Thanks for your quick follow-up, great
   stuff.

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

The topic ‘Incorrect shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-ultimate-recipe.svg)
 * [WP Ultimate Recipe](https://wordpress.org/plugins/wp-ultimate-recipe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ultimate-recipe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ultimate-recipe/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ultimate-recipe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ultimate-recipe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ultimate-recipe/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [barkgj](https://wordpress.org/support/users/barkgj/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/incorrect-shortcode-1/#post-5199527)
 * Status: resolved