fetch custom post if meta key exist

You were on the right track: use a meta_query in your query. There are plenty of examples in the codex, how you implement it depends on what fields you’re using, but that’s the way to go. An example with multiple fields queried: $args = array( ‘post_type’ => ‘product’, ‘meta_query’ => array( ‘relation’ => ‘OR’, array( … Read more

why form in front-page.php redirect to blog page

Because, by default, if you don’t specify an actual page in the target, it assumes you meant www.example.com/ , which goes to the www.example.com/index.php page, which loads the home page of your site, which is the front page of your site, which is normally the blog page (unless you specify a static page as the … Read more

How to call or add password input / generate password / password strenght meter in custom registration form?

You can add password input/ generate password / password strength meter in any custom registration form in admin area or front end area with simple code. In first step: Add this html code in your registration form <table class=”form-table”> <tr id=”password” class=”user-pass1-wrap”> <th><label for=”pass1″><?php _e( ‘New Password’ ); ?></label></th> <td> <input class=”hidden” value=” ” /><!– … Read more

Auto Submit Contact Form 7

You need to call submit() function on document ready check the code <script type=”text/javascript”> jQuery(document).ready(function(){ jQuery(“#wpcf7-f3857-o1 form”).submit(); }); </script> In my code wpcf7-f3857-o1 is the contact form’s css id. You need to change that id. try the code and let me know the result. Thanks