Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Shortcode From Template File - Not Woring

wordpress

Best Answer juanfe.villa, 02 April 2013 - 10:02 PM

That did the trick.

 

Thanks Eric, great plugin you guys develop. Keep up the excellent work.

 

Cheers,

Juan

Go to the full post


  • Please log in to reply
6 replies to this topic

#1 juanfe.villa

juanfe.villa

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 01 April 2013 - 10:23 PM

Hi,

 

I just bought the plugin. It looks amazing. However, I my shortcode doesn't work in a template file as I was expected. Please see below the line I am adding to my template file:

 

<?php echo do_shortcode('[tubepress mode="playlist" playlistValue="PLgalz2dWSRZOQaYqxhbiGF1jKxcuuvVvS" theme="youtube" playerLocation="popup" hqThumbs="true" resultCountCap="15"]'); ?>

 

 

Any advice will be helpful.

 

Thanks,

Juan Villanueva
 



#2 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 01 April 2013 - 10:46 PM

Hi Juan,

 

Could you please share a link to the page where you have this code added, so that we can take a look at it and see what's causing your TubePress to not work properly.  If you can't share it publicly, you can always send it to me in a Private Message.

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#3 juanfe.villa

juanfe.villa

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 01 April 2013 - 10:54 PM

Thanks Brandon for your quick answer.

 

Unfortunately, I am working on a local environment. The site hasn't been published yet.

 

The shortcode works on pages and post thought. Do you expect it to work in the template too?

 

How else can we work this out?

 

Thanks



#4 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 02 April 2013 - 06:05 PM

Hi Juan,

 

The instructions for using TubePress Pro inside WordPress templates can be found  here: http://tubepress.com...Press_Templates. We don't really support the do_shortcode() WordPress function.



#5 juanfe.villa

juanfe.villa

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 02 April 2013 - 10:02 PM   Best Answer

That did the trick.

 

Thanks Eric, great plugin you guys develop. Keep up the excellent work.

 

Cheers,

Juan



#6 juanfe.villa

juanfe.villa

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 02 April 2013 - 11:33 PM

One think I notice is that there is not an ajax loader image to give some feedback to the user.

 

Is there any way I can add it myself?

 

Thanks.



#7 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 04 April 2013 - 12:33 AM

Hi Juan,

 

It is possible to add the ajax loader image, although it is a very involved modification requiring some complicated steps and procedures.

 

If you are sure that you want to add it, please let us know and we can provide you with some guidance.

 

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!