Support » Plugin: WP-Table Reloaded » [Plugin: wp-table-reloaded] – Use shortcodes from Download manager plugin

  • Resolved dydric

    (@dydric)


    Awesome plugin! One small question about using a shortcode from another plugin…

    Is it possible to display some shortcode from the Download Manager plugin? The generated shortcode looks like: {filelink=1}

    I know it is not that difficult (or am I terribly wrong?), but I couldn’t find out.
    It will save a client and myself lots of time.

    thanks in advance

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for the question.

    Yes, that is easily possible. The Download Manager plugin does not use the regular WordPress Shortcodes, but its own custom implementation, so all you need is one line of code:

    add_filter( 'wp_table_reloaded_cell_content', 'Downloadable' );

    Just paste that into the “functions.php” in your theme, and the plugin’s Shortcodes will work in tables.

    Best wishes,
    Tobias

    Thread Starter dydric

    (@dydric)

    Thanks for the quick reply.
    The code works! =)

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    great, thanks for the confimation!

    Regards,
    Tobias

    Hi Tobias, nice work! Can’t seem to get shortcode from the Syndicate Press plugin to work inside a table. Assume the answer is similar to the above for the Download Manager plugin and the ‘Downloadable’ part needs to be changed but not sure what to change it to. Can you help?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, you are correct. For “Syndicate Press”, you willl need a modified piece of code. Please try it with

    add_filter( 'wp_table_reloaded_cell_content', array( &$syndicatePressPluginObjectRef, 'sp_ContentFilter' ) );

    which you need to paste into your theme’s “functions.php”.

    Regards,
    Tobias

    Thanks for the quick reply Tobias. This is the response I get when it’s added.

    Fatal error: Call to undefined function add_filter() in /wordpress/wp-includes/functions.php on line 4559

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    where exactly did you add this?

    It is supposed to go into the “functions.php” in your theme folder, and NOT into the “functions.php” in the that “wp-includes” folder (which belongs to the core of WordPress)!

    Regards,
    Tobias

    Thanks Tobias, my bad. Works like a charm!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    very nice! Great to hear that. Thanks for the confirmation!

    Best wishes,
    Tobias

    What would I need to do to make the shortcode for the WP Calameo plugin work inside a wp-table-reloaded table? (The plug-in displays a mini-version of a publication, which links to a full screen viewer.)

    http://wordpress.org/extend/plugins/wp-calameo/

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question.

    For WP Calameo, the necessary code in the functions.php is

    add_filter( 'wp_table_reloaded_cell_content', 'calameo_parse' );

    Best wishes,
    Tobias

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: wp-table-reloaded] – Use shortcodes from Download manager plugin’ is closed to new replies.