Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to fetch data from database in wordpress?

<table border=”1″> <tr> <th>Name</th> <th>Phone no.</th> <th>city</th> </tr> <tr> <?php global $wpdb; $result = $wpdb->get_results ( “SELECT * FROM myTable” ); foreach ( $result as $print ) { echo ‘<td>’

Read More »

How to send custom email template in wordpress?

 Send custom email template in wordpress $body = file_get_contents(WP_CONTENT_DIR . ‘/themes/Avada-Child-Theme/contact-email.html’);$body = str_replace(“#name#”,$_POST[‘quotename’],$body);$body = str_replace(“#email#”,'<a style=”color:#fff” href=”mailto:’.$_POST[‘quoteemail’].’”>’.$_POST[‘quoteemail’].'</a>’,$body);$body = str_replace(“#mobile#”,$_POST[‘quotemobile’],$body);$body = str_replace(“#message#”,$_POST[‘quotemessage’],$body); $toadmin = “[email protected], [email protected], [email protected]”; $adminmessage = “You just

Read More »