0
votes

I am trying to use the Print This Section plugin with WP-Invoice and have been struggling for days now trying to figure out where the problem is?

With Both WP-invoice installed and working and WP Print This section also installed and working. On my Invoice page I have used [print_this] [wp-invoice] [/print_this]

This displays perfectly the WP-invoice shortcode is read and processed and displays inside the Print this section box.

The problem is when I click the "Print This" button the page that opens up actually displays the text [wp-invoice] and not the actual invoice?

I have been all over the net and tried many things to do with nested shortcodes, from what I can tell I need a "do_shortcode($content)" somewhere but I can't figure out where?

A link to the sample invoice and problem: http://www.yourtechally.com/client-login/invoice-online/?invoice_id=ef77a582808c0973b62d79f40059ce30

1

1 Answers

0
votes
$code=do_shortcode('[wp-invoice]');
$shortcode='[print_this]'.$code.'[/print_this]';
do_shortcode($shortcode);

Try this, it could be the solution.