Layout The Post Content via function
-
Hi There awesome plugin,
I am running into some difficulties. I am using this function `add_action( ‘wpo_wcpdf_after_item_meta’, ‘wpo_wcpdf_show_product_description’, 10, 3 );
function wpo_wcpdf_show_product_description ( $template_type, $item, $order ) {
global $wpo_wcpdf;
printf(‘<div class=”product-description”>%s</div>’, $item[‘product’]->post->post_content );
}`
to display the post content . How ever is there a way that i could design the layout of %s because everything is on one line. here is an example of my post_content.
'post_content' => " Range: $range</br> Width: $width </br>Length: $length </br>Fabric: $fabric </br>Style: $style </br>Lining: $lining </br>Opening: $opening </br>Voile: $voile </br>Track: $track </br>Rod: $rod </br>Pulley: $pulley",
Thanking you in advancehttps://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/
The topic ‘Layout The Post Content via function’ is closed to new replies.