Menu Title

WordPress - Use javascript to print specific contents in page

  This solution worked for me. Step 1: Specify the printable contents inside this div. <a href='javascript:printContent("ad_div")' id='print_link'>Print</a> <div id='ad_div'> specify your printable content here... </div>   Step 2: JavaScript function to print contents inside div in your webpage. function printContent(div_id) { var DocumentContainer = document.getElementById(div_id); var html = '<html><head>'+ Continue Reading

WordPress - How to pass variable as parameter in URL

  This simple method worked for my WordPress website to pass a parameter in URL. In this tutorial, the Datewise Invoices page lists down all the invoices created between the dates. When you click on a specific Invoice No, the invoice no is passed as parameter value and a new webpage opens up more details of the invoice. Continue Reading