Title: shortcodes problems
Last modified: August 20, 2016

---

# shortcodes problems

 *  [winenerd](https://wordpress.org/support/users/winenerd/)
 * (@winenerd)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/shortcodes-problems/)
 * I’m trying to use wordpress shortcodes for the bottom content of my post in my
   blog. I have however big problems with this.
 * The function I’m trying to build looks like this:
 * There are three attributes in the function and these should be included in the
   code below
 * function bottom_func( $atts ) {
    extract( shortcode_atts( array( ‘category’ =
   > ‘all’, ‘wine’ => ‘all’, ‘vintage’ => ‘all’, ), $atts ) ); return ‘<h3>Buy this
   wine – stores and prices</h3> <div style=”padding:2px;”><span id=”ws1330668386156n”
   style=”font-family:inherit;font-size:inherit;font-style:normal;font-weight:normal;
   color:#000000;”></span>
 * <span><b>Stores</b>:</span>
   </div><div style=”padding:2px;”></div><div id=”ws1330668386156″
   style=”padding:2px;”>Loading… </div><script type=”text/javascript” charset=”iso-
   8859-1″> ws_sup_createrequest(“ws1330668386156″,”{$wine}”,”{$vintage}”,”ANY”,””,”
   EUR”,”A”,”false”,”inherit”,”inherit”,”inherit”,”inherit”,”inherit”,”inherit”,”
   5″,”normal”,”normal”,”#2500b2″,”normal”,”normal”,”#000000″,”normal”,”normal”,”#
   000000″)</script> </small>Prices and store information is provided by wine-searcher.
   com</small> <h3>Tasting Notes for this producer</h3> [catlist name=”$category”
   tags=taste numberposts=30 excerpt=no date=yes] <h3>Related articles</h3> [catlist
   name=”$category” tags=article excerpt=yes] ‘;} add_shortcode( ‘bottom’, ‘bottom_func’);
 * Example:
 * [bottom category=”jean-grivot” wine=”Jean%20Grivot%20Echezeaux” vintage=”2009″]
 * Should give the following code:
    <h3>Buy this wine – stores and prices</h3> <
   div style=”padding:2px;”><span id=”ws1330668386156n” style=”font-family:inherit;
   font-size:inherit;font-style:normal;font-weight:normal;color:#000000;”></span
   >
 * <span><b>Stores</b>:</span>
   </div><div style=”padding:2px;”></div><div id=”ws1330668386156″
   style=”padding:2px;”>Loading… </div><script type=”text/javascript” charset=”iso-
   8859-1″> ws_sup_createrequest(“ws1330668386156″,” Jean%20Grivot%20Echezeaux”,”
   2009″,”ANY”,””,”EUR”,”A”,”false”,”inherit”,”inherit”,”inherit”,”inherit”,”inherit”,”
   inherit”,”5″,”normal”,”normal”,”#2500b2″,”normal”,”normal”,”#000000″,”normal”,”
   normal”,”#000000″)</script> </small>Prices and store information is provided 
   by wine-searcher.com</small> <h3>Tasting Notes for this producer</h3> [catlist
   name=”jean-grivot” tags=taste numberposts=30 excerpt=no date=yes] <h3>Related
   articles</h3> [catlist name=”jean-grivot” tags=article excerpt=yes]
 * What is wrong with my code?

Viewing 1 replies (of 1 total)

 *  [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * (@dgwyer)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/shortcodes-problems/#post-2663483)
 * I would post your code on [http://pastebin.com/](http://pastebin.com/) so it’s
   more readable.

Viewing 1 replies (of 1 total)

The topic ‘shortcodes problems’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [David Gwyer](https://wordpress.org/support/users/dgwyer/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/shortcodes-problems/#post-2663483)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
