Title: [Plugin: podPress] Using within another shortcode (like-gate)
Last modified: August 20, 2016

---

# [Plugin: podPress] Using within another shortcode (like-gate)

 *  [peeld](https://wordpress.org/support/users/peeld/)
 * (@peeld)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/)
 * I’d REALLY like to use this plugin with FB Like-Gate – it would be awesome to
   have users ‘like’ the page and then have the podcast revealed. Trouble is, the[
   display_podcast]shortcode doesn’t work within the like-gate shortcode tags.
 * Is there any way to make it work? In an iframe or something?
 * Thanks
 * [http://wordpress.org/extend/plugins/podpress/](http://wordpress.org/extend/plugins/podpress/)

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

 *  [Svetoslav Marinov](https://wordpress.org/support/users/lordspace/)
 * (@lordspace)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463114)
 * Will take a look.
    again, please use the contact link from within the plugin.
 *  Thread Starter [peeld](https://wordpress.org/support/users/peeld/)
 * (@peeld)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463275)
 * The contact link within the plugin just goes to the website, not a contact form.
   Any update on this? I’ve now tried two FB like type plugins and neither one can
   hide Podpress – in one case, the Podpress shortcode isn’t parsed, just shows 
   as text, and in the other case, the content is hidden until the user likes it,
   BUT, the podcast content is shown at the end/beginning (depending on settings)
   BEFORE liking, and then once liked, it shows where the shortcode is placed.
 * Thanks!
 *  Plugin Author [ntm](https://wordpress.org/support/users/ntm/)
 * (@ntm)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463276)
 * I have no solution for this problem. But I will try to explain the problem:
    
   Usually podPress replaces the [display_podcast] shortcode during the page loads
   with certain HTML code and a line of Javascript code and returns that code to
   the browser. The browser executes the Javascript code which determines the type
   and apearance of the media player elements and modifies the podPress part of 
   a post accordingly, dynamically. I’m not sure how the Like-Gate plugin works 
   exactly. But it seems that the plugin hides/encodes the original code of the 
   podPress elements and probably decodes and loads this code after the click on
   the Like button. But I guess if the player does not appear after the click on
   the Like button then the Like-Gate plugin does not execute the Javascript to 
   load the player.
 * [@peeld](https://wordpress.org/support/users/peeld/): Is the media file icon,
   the download link and the other podPress links (which are usually below the player)
   visible after the the click on the Like button?
 *  Plugin Author [ntm](https://wordpress.org/support/users/ntm/)
 * (@ntm)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463277)
 * [@svetoslav](https://wordpress.org/support/users/svetoslav/) Marinov: What exactly
   is the iframe approach? Using the [iframe WP plugin](http://wordpress.org/extend/plugins/iframe/)?
 * If this should really be solution then I can’t see how it should work in this
   case. Because the JS function of podPress which should be called creates `<object
   >` and `<embed>` elements and sometimes only a `<div>` with a preview image. 
   It does not simply add a video to a post. That is why there is no `src=""` for
   the `[iframe]`.
 *  Thread Starter [peeld](https://wordpress.org/support/users/peeld/)
 * (@peeld)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463278)
 * [@ntm](https://wordpress.org/support/users/ntm/) The media file icon, the download
   link, all that is present after hitting like, but it is also present BEFORE, 
   just lower down at the end of the content (even though my shortcode is further
   up. You can see it in action here:
 * [http://www.daisypeel.com/podcasts/what-is-consistency/](http://www.daisypeel.com/podcasts/what-is-consistency/)
 * Once ‘liked’, the media file icon, link, etc., appear where the ‘like this’ bit
   used to be.
 *  Plugin Author [ntm](https://wordpress.org/support/users/ntm/)
 * (@ntm)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463279)
 * It looks like you are using currently a different plugin which should lock parts
   of the post content. It does not look like Like-Gate. Is it this one [http://wordpress.org/extend/plugins/facebook-like-content-locker/](http://wordpress.org/extend/plugins/facebook-like-content-locker/)?
   Which one is it?
 *  Thread Starter [peeld](https://wordpress.org/support/users/peeld/)
 * (@peeld)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463280)
 * I’m using [http://codecanyon.net/item/wordpress-like-locker-like-to-read-plugin/166051](http://codecanyon.net/item/wordpress-like-locker-like-to-read-plugin/166051)
 *  Plugin Author [ntm](https://wordpress.org/support/users/ntm/)
 * (@ntm)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463281)
 * That plugin works also with shortcode and does not seem to load Javascripts after
   the Like click.
 * > The media file icon, the download link, all that is present after hitting like,
   > but it is also present BEFORE,
 * Furthermore it somehow does not work very well with the content filter hook which
   podPress also uses to replace its place-holder on page loading.
    Since I don’t
   want to buy that plugin, it is hard for me to say what the problem in this case
   is.
 *  Thread Starter [peeld](https://wordpress.org/support/users/peeld/)
 * (@peeld)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463282)
 * I suppose for the purposes of development I could send you a copy…? Or buy a 
   second copy and give it to you?
 *  Plugin Author [ntm](https://wordpress.org/support/users/ntm/)
 * (@ntm)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463283)
 * I don’t know. I may be able to help with the doubled podPress elements. In order
   to do that I would need to look into the code of the other plugin. But it is 
   actually not sure whether this is a problem of the Like-Locker plugin. For instance
   you use probably a further plugin to display those 4 social network Like-like
   counter elements (right before the podPress play at the end of the post). This
   plugin could also be responsible for the doubled player. (You can find out which
   one it is by temporarily deactivating this plugin and reloading the post.)
    First
   you should make sure which plugin is responsible for that and then you should
   ask the plugin author for help. There is most likely a problem with the way the
   the_content Filter Hook is used.
 * Furthermore I have only a vague idea on how to solve the problem (the player 
   does not appear after the click on the Like button) which you could observe with
   Like-Gate too. I guess the plugin would need to parse the in the hidden content(
   code) for Javascript sections, grab the functions and call them after one has
   clicked on the Like button. Or maybe there is a better way. But this are things
   which the author of the other plugin should implement.
    It would be better if
   you would ask the author of the other plugin for help. I would explain further
   to him/her what podPress does.
 * Please, don’t send me the plugin.
 *  Thread Starter [peeld](https://wordpress.org/support/users/peeld/)
 * (@peeld)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463284)
 * Thanks for all of the information – I’ve forwarded it on, as well as the URL 
   of this thread, to the plugin developer. The player does in fact appear, but 
   it appears BEFORE the ‘like’ button is clicked, just at the end of the post (
   which is where it’s set to appear in Podpress general settings). Then after ‘
   liking’, it shows up where the shortcode actually is placed for Podpress in the
   content.
 * But in any case, when I get a solution, I’ll post it here for others. Being able
   to Like-lock your Podpress shortcode is a great way to give out free podcasts
   in exchange for people sharing the word about them 🙂
 *  Plugin Author [ntm](https://wordpress.org/support/users/ntm/)
 * (@ntm)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463285)
 * > Then after ‘liking’, it shows up where the shortcode actually is placed for
   > Podpress in the content.
 * Do I understand it correctly, that the player appears after ‘liking’? That would
   be great.
 * > The player does in fact appear, but it appears BEFORE the ‘like’ button is 
   > clicked, just at the end of the post
 * As I have written above the reason for that might be totally different plugin.
   Are you sure that the like-locker plugin is causing that? What happens if you
   place the [display_podcast] place-holder somewhere in the post but not in the
   like-locker part. Does the player appear twice in the post too?
 * > (which is where it’s set to appear in Podpress general settings)
 * If you are using the place-holder then podPress dismisses the settings on the
   general settings page for this post and place the podPress elements where the
   place holder is.
 *  Thread Starter [peeld](https://wordpress.org/support/users/peeld/)
 * (@peeld)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463286)
 * Here is what the plugin creator says:
 * “The issue is not with like locker, all like locker does it hide / show the content.
   If your podpress shortcode is not working within like locker its because podpress
   does not support nested shortcodes (or shortcodes inside of shortcodes.) Like
   locker does not modify or filter content at all, so nothing is really being changed
   only that the content itself is shown or not shown.”
 * If you go to the link I posted above, on my daisypeel.com website, you’ll see
   what I mean. Although the pod press shortcode is inside the like locker shortcode,
   it’s like pod press thinks there is NO shortcode and so puts the player at the
   end of the content, where the general settings specify. Ten, once liked, the 
   pod press player shows up where the shortcode actually is.
 * This was an issue before I added the social media plugin, btw.
 * Thanks again 🙂
 *  Plugin Author [ntm](https://wordpress.org/support/users/ntm/)
 * (@ntm)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463287)
 * > Like locker does not modify or filter content at all, so nothing is really 
   > being changed only that the content itself is shown or not shown.
 * If that is true then something else is causing the doubled appearance of the 
   podPress elements.
    In the past such a problem was often caused by an interference
   with a different plugin. That is why I would like to know whether you use other
   plugins besides podPress, Like-Locker and Social Sharing Toolkit to add something
   to a post or maybe to alter the style of elements in the post. What are the names
   of these other plugins?
 * I have also contacted the author of the like-locker plugin myself and ask him
   for support.
 * Tim
 *  Thread Starter [peeld](https://wordpress.org/support/users/peeld/)
 * (@peeld)
 * [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463288)
 * Tim, thanks so much – I’ll go through all my plugins over the next few days, 
   and if/when I find a conflict I’ll post it here.
 * Thanks again for the support – that’s better than a resolution, I appreciate 
   the help 🙂

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

The topic ‘[Plugin: podPress] Using within another shortcode (like-gate)’ is closed
to new replies.

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

 * 15 replies
 * 3 participants
 * Last reply from: [peeld](https://wordpress.org/support/users/peeld/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-podpress-using-within-another-shortcode-like-gate/#post-2463288)
 * Status: not resolved