![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() Hi guys,
I'm trying to use a plugin called Tubepress but its shortcodes are not working on the product detail page. I've tried them from posts and they work from there. I *guess* this is possibly something wrong with the way tubepress has implemented their shortcodes? Here's an example: http://www.fitness-saver.com/uk/weider-2990-i-multigym/ And here's a link to my question on tubepress forum: http://tubepress.org/forum/viewtopic.php?f=19&t=1607 Any help you can provide greatly appreciated. Kind Regards, Dave Hilditch |
#2
|
||||
|
||||
![]() Hi
Try calling the shortcode using PHP like this: PHP Code:
__________________
![]() ![]() ![]() ![]() |
#3
|
|||
|
|||
![]() |
#4
|
||||
|
||||
![]() Hi
I would write a little function to put in your functions.php file. Call it something like dfr_get_shortcode($title) Reference that function from your view. Then in the function have it return the call to do_shortcode() with the title along with it. Eric
__________________
![]() ![]() ![]() ![]() |
#5
|
|||
|
|||
![]() That's a good idea - I'll experiment with that tonight.
|
#6
|
|||
|
|||
![]() Hi Eric,
Never got round to trying that when I said I would, tried it tonight though and it's still not working. I've also now tried calling the PHP for tubepress directly: Quote:
(as per http://tubepress.org/forum/viewtopic.php?f=19&t=1607 and http://tubepress.org/documentation/u...ress_templates) Those paths are accurate. I have tried both relative includes and direct includes but as soon as I add either from within Datafeedr I get a blank page returned. If instead I add this to header.php, I get an error when trying to call getHtmlForShortcode. If I could get this part here working, I believe the rest would work: Quote:
For some reason, I believe the scope is different - is this possible? Last edited by dhilditch : October 4th, 2012 at 05:03 PM. |
#7
|
||||
|
||||
![]() Hi
I've tried testing with the free version of TubePress but it does not contain any of the methods that the Pro version refers to. I also tried adding just this to my header.php file and it does not work: PHP Code:
The only thing I can think of is creating a function in your functions.php file, put the code that you have above into that function and call that function from a view in Datafeedr. In functions.php PHP Code:
PHP Code:
Eric
__________________
![]() ![]() ![]() ![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with Product Detail Page | wlk23 | Problems | 2 | August 15th, 2012 04:29 PM |
Category Lists thru DFR Shortcodes | kaje | Questions | 2 | July 23rd, 2012 12:14 PM |
Add comments box to Product Detail | crazysaver | Questions | 11 | July 4th, 2012 06:19 AM |
Is there any way to display product ratings (*****) in Categories and Product detail? | sandeep821 | Questions | 3 | April 25th, 2012 10:25 AM |
Can I use shortcodes in a text widget? | DogWalkingGear | Questions | 3 | September 16th, 2011 08:05 AM |