Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

PHP snippet displays at top of portfolio page

Home / Forums / Virtue Theme / PHP snippet displays at top of portfolio page

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
December 5, 2016 at 10:08 am

I’m trying to build a page that queries a custom db table using the wpdb class, prints results in an HTML table, and then displays the HTML table inside a tab located within a Portfolio page. I’m currently using a plugin called XYZ PHP Code Snippets, which works, but the HTML table appears at the top of the text column instead of embedded within a tab.

I’ve tried several other php plugins without success (though since my site uses the XYZ PHP Code snippets on production pages, I haven’t tested the others with XYZ disabled). They can’t parse the code which works in XYZ and on a template page.

Anyway, I have set up a child theme, and would be willing to code this on a template page. However, portfolio pages don’t give you the option of selecting a custom template page, so I’m stuck there.

Any ideas?

You can see the page here:

You can see the two tabs which appear below the table.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.