Title: allowing shortcode within the wp-float
Last modified: August 20, 2016

---

# allowing shortcode within the wp-float

 *  [larsenteam](https://wordpress.org/support/users/larsenteam/)
 * (@larsenteam)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/allowing-shortcode-within-the-wp-float/)
 * I am trying to use a shortcode for another plugin within your plugin and was 
   wondering how I can enable this to happen.
 * [http://motormoversautotransport.com/newsite/](http://motormoversautotransport.com/newsite/)
 * [http://wordpress.org/extend/plugins/wp-float/](http://wordpress.org/extend/plugins/wp-float/)

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

 *  Plugin Author [samhagin](https://wordpress.org/support/users/samhagin/)
 * (@samhagin)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/allowing-shortcode-within-the-wp-float/#post-3582077)
 * Not sure if it will work but you can try
 * [wp_float]
    [other_shortcode] [/wp_float]
 * where [other-shortcode] is the shortcode that you want to use with wp float, 
   also refer to the documentation at [http://webwiki.co/wp-float/](http://webwiki.co/wp-float/)
   on how to use the shortcode
 *  [Johanhorak](https://wordpress.org/support/users/johanhorak/)
 * (@johanhorak)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/allowing-shortcode-within-the-wp-float/#post-3582178)
 * Hi Thanks. I want to see how this works with Contact Form 7 short code.
 * Tried it and it does not work ;-(
 *  [Johanhorak](https://wordpress.org/support/users/johanhorak/)
 * (@johanhorak)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/allowing-shortcode-within-the-wp-float/#post-3582179)
 * [@tschnaars](https://wordpress.org/support/users/tschnaars/) said in another 
   post:
 * > add the echo do_shortcode(‘[shortcode]’); to the floating plugins code
 * Now if this is true then in which file do I add it?
 * I tried it but must have done something wrong.
 *  [dcohen](https://wordpress.org/support/users/dcohen/)
 * (@dcohen)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/allowing-shortcode-within-the-wp-float/#post-3582207)
 * I found a way to float a shortcode on the page from [http://israelphonerentals.com/how-we-added-a-floating-widget-in-wordpress/](http://israelphonerentals.com/how-we-added-a-floating-widget-in-wordpress/)
 * Basically, you first need to install widgets on pages
 * [http://wordpress.org/plugins/widgets-on-pages/](http://wordpress.org/plugins/widgets-on-pages/)
 * and then put this code right above the </body> in your footer.
 * `<div id=”floating_cart” style=”bottom:0;position:fixed;_position:absolute;right:
   0><?php widgets_on_template(“cart”); ?></div>
 * and just replace the widgets_on_template(“cart”) part with whatever the widgets
   on pages name is.
 * You can edit the style= section to change where it floats.

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

The topic ‘allowing shortcode within the wp-float’ is closed to new replies.

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

 * 4 replies
 * 4 participants
 * Last reply from: [dcohen](https://wordpress.org/support/users/dcohen/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/allowing-shortcode-within-the-wp-float/#post-3582207)
 * Status: not resolved