I want to automaticly insert the current post title into this line where it says PRODUCT-NAME… (in single.php)
<?php echo print_wp_cart_button_for_product(’PRODUCT-NAME’, PRODUCT-PRICE); ?>
It’s probably simple but i am no good with php.
Hope somebody can help me?
- The topic ‘Inserting the_title() into a function?’ is closed to new replies.