• Resolved andreasml

    (@andreasml)


    Hi,

    It is impossible to make the “TablePress Extension: PHP in tables” to work. I cannot make a php script to be presented in a table cell.

    Any help would be very much appreciated

    Regards

    Andreas

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    What exactly are you trying and what is not working?

    Regards,
    Tobias

    Thread Starter andreasml

    (@andreasml)

    Hi again

    I have installed the “TablePress Extension: PHP in tables” as a separate folder (tablepress-php-in-tables) in the plugins folder of the folder wp-content.

    Then, I open the Tablepress plugin in the WordPress dashboard, and I insert a simple php code like <?php echo “hello”; ?> in a cell of a table.

    Unfortunately, nothing appears.

    Any suggestions?

    Kind regards,
    Andreas

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Andreas,

    just to be sure, did you activate the Extension as a plugin?

    Regards,
    Tobias

    Thread Starter andreasml

    (@andreasml)

    Hi Tobias

    I am still facing the same problem. You can see the problem in the following example. You can visit the following URL https://vascularregistry.gr/tables/

    On the first column of this table-example there are the titles.
    On the second column there are the values. On the first row, the value is a php script. On the second row the value is a simple php script (<?php echo “Hello”; ?>, and on the third row there is just a number.

    As you can see whenever a php script is used, it returns no values on the cells.

    I cannot find what is my mistake. Could you give me a hint?

    Regards,

    Andreas

    Thread Starter andreasml

    (@andreasml)

    PS. The plugin TablePress Extension: PHP in tables is activated

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    this is really strange then. I don’t really have idea as to why the code is not evaluated…

    Regardless, also for security reasons, maybe a better approach here would be to wrap your PHP code in a custom WordPress Shortcode? That way, you would not need PHP in table cells.

    Regards,
    Tobias

    Thread Starter andreasml

    (@andreasml)

    Hi Tobias,

    This is to let you know that it seems to work fine now. My mistake had probably to do with the path of the directories used in the php script.

    Anyways, it seems to be sorted now.

    Thank you for your assistance, and congrats for your great plugin

    Andreas

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Andreas,

    awesome! It’s great to hear that it’s working now! ??

    Best wishes,
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Php cannot be seen’ is closed to new replies.