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

Shortcodes Does Not Work On Sahifa Template

wordpress

Best Answer eric , 02 December 2013 - 01:50 AM

Thank you for your reply.  I know it works on post and pages.  It also worked the free version.

But I bought the Pro Version because you said it works on templates.

 

Does it mean Tubepress does not work with this template. Is there anyway to show Tubepress on main page.

 

Thank you

 

I see that you've already got TubePress working with your home page template (the Pittsburgh steelers gallery works as expected). So at the location in your template where you currently have

[tubepress]

simply replace that with

<?php 

    include WP_PLUGIN_DIR . '/tubepress/src/main/php/classes/TubePressPro.php';

    print TubePressPro::getHtmlForShortcode('');
 ?>

Does that make sense? Please give that a try and let us know. Thanks.

Go to the full post


  • Please log in to reply
7 replies to this topic

#1 mrguez

mrguez

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 21 November 2013 - 02:37 PM

I have inserted at the index.php file of the Sahifa template the code:
 
include WP_PLUGIN_DIR . '/tubepress/src/main/php/classes/TubePressPro.php';

 

Sahifa templates allows to add custome comten, but when I add the shortcode for example [tubepress] I only see as text.

 

Also I tried with

 

print TubePressPro::getHtmlForShortcode('mode="tag" tagValue="pittsburgh steelers" resultsPerPage="3"');

 

and also see as text.

 

 

 

 http://www.regalos007.com/blog/

 
Thank you for your reply


#2 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 26 November 2013 - 07:34 PM

Hello mrguez,

 

It appears that TubePress is working properly on your linked site.

 

If you are still experiencing issues, please post a link to the exact page where you are having issues.

 

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 mrguez

mrguez

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 26 November 2013 - 07:47 PM

Hello,

 

Thank you for your reply. But is not working properly. At the upper side of the page I insert the code manualy in the index.php file and it works. I insert this just as a test:

 

 

<?php 
  include WP_PLUGIN_DIR . '/tubepress/src/main/php/classes/TubePressPro.php';
 
get_header();
 
 print TubePressPro::getHtmlForShortcode('mode="tag" tagValue="pittsburgh steelers" resultsPerPage="3"');
 ?>

 

 

But look near the bottom in the middle area, you can see as text  [tubepress] instead the shortcode working. I inserted [tubepress] inside the template builder. This shortode does not work in the template. That is the problem. 

 

http://www.regalos007.com/blog/

 

Thank you for your help.

Manuel



#4 mrguez

mrguez

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 28 November 2013 - 06:15 AM

Hello mrguez,

 

It appears that TubePress is working properly on your linked site.

 

If you are still experiencing issues, please post a link to the exact page where you are having issues.

 

Thanks!

Hello,

 

Thank you for your reply. But is not working properly. At the upper side of the page I insert the code manualy in the index.php file and it works. I insert this just as a test:

 

 

<?php 
  include WP_PLUGIN_DIR . '/tubepress/src/main/php/classes/TubePressPro.php';
 
get_header();
 
 print TubePressPro::getHtmlForShortcode('mode="tag" tagValue="pittsburgh steelers" resultsPerPage="3"');
 ?>

 

 

But look near the bottom in the middle area, you can see as text  [tubepress] instead the shortcode working. I inserted [tubepress] inside the template builder. This shortode does not work in the template. That is the problem. 

 

http://www.regalos007.com/blog/

 

Thank you for your help.

Manuel



#5 mrguez

mrguez

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 28 November 2013 - 06:09 PM

Hello,

 

Please I will apreciate your reply because I do not know what to do. 

 

It is not working properly. At the upper side of the page I insert the code manualy in the index.php file and it works. I insert this just as a test:

 

 

<?php 
  include WP_PLUGIN_DIR . '/tubepress/src/main/php/classes/TubePressPro.php';
 
get_header();
 
 print TubePressPro::getHtmlForShortcode('mode="tag" tagValue="pittsburgh steelers" resultsPerPage="3"');
 ?>

 

 

But look near the bottom in the middle area, you can see as text  [tubepress] instead the shortcode working. I inserted [tubepress] inside the template builder. This shortode does not work in the template. That is the problem. 

 

http://www.regalos007.com/blog/

 

Thank you for your help.

Manuel



#6 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 30 November 2013 - 12:51 AM

Hello Manuel,

 

The tubepress shortcode does not work on your homepage.  It will work on posts and pages.

 

Does that answer your question?  Your route of using the PHP is the correct way to display a TubePress Gallery on your home page.

 

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!


#7 mrguez

mrguez

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 30 November 2013 - 04:46 AM

Thank you for your reply.  I know it works on post and pages.  It also worked the free version.

But I bought the Pro Version because you said it works on templates.

 

Does it mean Tubepress does not work with this template. Is there anyway to show Tubepress on main page.

 

Thank you



#8 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 02 December 2013 - 01:50 AM   Best Answer

Thank you for your reply.  I know it works on post and pages.  It also worked the free version.

But I bought the Pro Version because you said it works on templates.

 

Does it mean Tubepress does not work with this template. Is there anyway to show Tubepress on main page.

 

Thank you

 

I see that you've already got TubePress working with your home page template (the Pittsburgh steelers gallery works as expected). So at the location in your template where you currently have

[tubepress]

simply replace that with

<?php 

    include WP_PLUGIN_DIR . '/tubepress/src/main/php/classes/TubePressPro.php';

    print TubePressPro::getHtmlForShortcode('');
 ?>

Does that make sense? Please give that a try and let us know. Thanks.







Also tagged with one or more of these keywords: wordpress