• Resolved jaggerwarellc

    (@jaggerwarellc)


    Hi,

    I am using another plugin called TablePress. I would like to insert a table from TablePress into my footer.

    TablePress uses short codes (like ‘[table id=5 /]’) in the body of a page or post. But, it doesn’t support using a short code in the header or footer.

    In their documentation, they have a workaround for this. That would be to insert something like the following into the page footer:

    <?php tablepress_print_table( ‘id=1&use_datatables=true&print_name=false’ ); ?>

    or

    <?php tablepress_print_table( array(‘id’ => ‘5’) ); ?>

    So, I tried to do this using the Footer field in this plugin.

    When I view the web page source, I see this exact PHP code in the source of my page. But, it doesn’t seem to execute the PHP function call to insert the table.

    The code is on this page:

    https://www.thecoffeebeanmenu.com

    Any ideas?
    Thanks in advance for your help…

    Regards,
    sjmyst

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Insert PHP code into footer.’ is closed to new replies.