Scroll to top


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 use search ajax in wordpress?

search ajax in wordpress     Use in html file  <html> <head> <style> .sec { width: 223px; height: 41px; border: 1px solid #54595f; margin-bottom:4px; } </style> <script src=”<?php echo plugin_dir_url(__FILE__);?>js/jquery.min.js”

Read More »

How to pass variable id through href in php

<table class=”table table-hover”> <thead> <tr> <th>Subject</th> <th>Add Topic</th> </tr> </thead> <tbody> <tr> <?php foreach($subjects as $sub):?> <td><?php echo $sub->subject;?></td> <td><a href=’approve.php?id=”.$sub->id.”‘ role=”button” class=”btn”>Add Topic</a></td> </tr> <?php endforeach;?> </tbody></table>

Read More »

How to use WP_Query with have_posts()?

How to use WP_Query with have_posts()? global $wp_query; $original_query = $wp_query; $wp_query = null; $wp_query = new WP_Query( $args ); if ( have_posts() ) : while ( have_posts() ) :

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 »