• I am facing problems embedding the amazon link shortcode in tablepress.
    I was advised to add this to functions.php:
    add_filter( ‘tablepress_cell_content’, array( $GLOBALS[‘awlfw’], ‘content_filter’ ) );

    However, it makes the table disappear.

    I’d appreciate any help

    – Nilanjan

    Here are the steps i followed:
    1. Create a table
    2. Paste this in one of the cells: [amazon asin=”1593275277″&text=”ruby under a microscope”]
    3. create a page with the table shortcode
    4. Add the shortcode for the preview: [amazon template=preview script]

    http://ww.wp.xz.cn/plugins/amazon-link/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author paulstuttard

    (@paulstuttard)

    Hi Nilanjan,

    I’ll look into it, might just be a case of changing the priority of the plugin.

    Paul

    Plugin Author paulstuttard

    (@paulstuttard)

    Hmmm,

    I’ve installed TablePress and created a table with 3 amazon shortcodes in.

    Then I created a post and put the Tablepress shortcode in the post then underneath that I put the preview shortcode:

    [table id=1 /]
    
    [amazon template=preview script]

    All three amazon links display as expected and the preview popup works too (with adblock disabled).

    Must be more to this than meets the eye!

    Have you any other plugins installed that might clash? e.g. Other Amazon Link plugins, or a Caching plugin?

    Paul

    Thread Starter nilanjanb

    (@nilanjanb)

    Hi Paul,

    Thanks for the quick response. Did you have to make the change in functions.php (mentioned in my first post)?

    I tried this on another of my sites – it seems to work fine.

    Not sure how to troubleshoot this. I don’t have any caching plugins. Not sure if this is related to the theme. I am using http://alienwp.com/themes/origin/

    Thanks again.
    – Nilanjan

    Plugin Author paulstuttard

    (@paulstuttard)

    Hi,

    No I didn’t need to add the code:

    add_filter( 'tablepress_cell_content', array( $GLOBALS['awlfw'], 'content_filter' ) );

    It just worked straight away.

    Do you know where you’re PHP warnings and errors are logged? If you have any sort of control panel with your web host there should be a link to the error log somewhere.

    Paul

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

The topic ‘embed shortcode in tablepress’ is closed to new replies.