• Resolved rmon

    (@rmon)


    Hello,

    I’m trying to use shortcode for a membership plugin inside of cells in the tables I import. The problem is that the shortcode is not working with wp-table-reloaded. It does work when I just copy and paste from csv into wysiwyg with wordpress.

    Here is an example: dividendstocksonline.com/teset123/

    You can see the copy/paste version below it working properly where it converts the company name to the word “join.”

    Is there anything I can do to get those shortcodes to work within wp-table-reloaded?

    Thanks for your help and excellent plugin.

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

    (@tobiasbg)

    Hi,

    this likely happens, because the Shortcodes are not registerd as regular WordPress Shortcodes, but are executed through a custom implementation.

    In most cases, it is however not hard to make them work within tables.

    Can you provide the exact name and link to the plugin? I’ll then gladly take a look and find out the necessary code for you.

    Regards,
    Tobias

    Thread Starter rmon

    (@rmon)

    It’s the wishlist member plugin – https://member.wishlistproducts.com/

    Its not free so unless you already have it I think you won’t be able to get the code. They say there is a free trial but I don’t see where you can download that.

    Thanks for your response.
    [email protected]

    Thread Starter rmon

    (@rmon)

    Also just in case you missed in from my first post, the shortcode for the plugin does work in tables, but just not tables that I display with wp-table-reloaded. Thanks.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for that link. Unfortunately, I don’t have a copy of that plugin, and I believe the free trial means that they will refund the buyer if he is not satisfied – so that is not an option for me.

    For your second post: You mean in tables that you manually create (as HTML code) in posts – compared to tables created in WP-Table Reloaded? Yes, that’s “expected”, meaning that’s what I meant above ??

    If you want, I can try to help by taking a look directly at your server, in that case, please contact me by email (address is in the main plugin file “wp-table-reloaded.php”),
    or,
    you could try to find the relevant piece of code, as it is actually just one line.
    Can you look through the source code of the Membership plugin and look for a line that starts like

    add_filter('the_content', ...

    ?
    That’s the line I need to find the necessary code to integrate the Shortcodes into WP-Table Reloaded.
    I assume that it is located in the “main” PHP file of the plugin, in its main directory (I don’t know the name though).

    Regards,
    Tobias

    Hi Tobias

    I am trying to do the same (use the shortcodes for the Donation Can plugin https://treehouseapps.com/donation-can/ inside the cells of WP-Tables Reloaded. The shortcodes ( [donation-can goal_id] ) work fine within the WordPress editor, but are not parsed in WP-Tables Reloaded.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, this is basically the same as for the plugin described above.

    If you add

    add_filter( 'the_content', 'donation_can_content_filter' );

    to your theme’s “functions.php” (just before the closing PHP ?> tag), the Donation Can Shortcodes should work in WP-Table Reloaded.

    Best wishes,
    Tobias

    I am using the Genesis Framework with the Church child theme from Studiopress. I added the code to the functions.php file, but nothing happened.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    argh, darn. I forgot to actually make the change to that code before posting it… Sorry. Please try again with this one:

    add_filter( 'wp_table_reloaded_cell_content', 'donation_can_content_filter' );

    Regards,
    Tobias

    Awesome. That did it. Thanks Tobias.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    great! Thanks for the confirmation!

    Best wishes,
    Tobias

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Shotcode in table cells not displaying’ is closed to new replies.