• Resolved judelis

    (@judelis)


    Hi everybody,
    I try to use “PHP in tables Extension 1.0”
    When I put any php code in a cell (even simple echo), the return is :

    Parse error: syntax error, unexpected ‘>’ in /usr/local/web/htdocs/www_eric/wp-content/plugins/tablepress-php-in-tables/tablepress-php-in-tables.php(26) : eval()’d code on line 1

    Any idea ?
    Thank’s

    https://wordpress.org/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Here, I assume that your PHP code contains line breaks, right? If so, you’ll need to turn off the automatic conversion to HTML <br /> tags. For that, please extend the Shortcode of the table to

    [table id=123 convert_line_breaks=false /]

    Regards,
    Tobias

    Thread Starter judelis

    (@judelis)

    Perfect, it works
    Thanks a lot for your reactivity and efficiency
    Have a nice evening
    Regards

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

    Thread Starter judelis

    (@judelis)

    And thank you for TablePress.
    Very reliable and convenient dévelopment.
    I’ll donate
    Regards

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks, I really appreciate it!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Use PHP in tables Extension 1.0’ is closed to new replies.