Category Covered

How to send HTML format emails in wordpress  

First You may want to specify the admin email address where all the registered users information should redirect. To do this you need to specify the wordpress  admin email address in your variable or you can give a certain email id also.

Remember  here the default content type is 'text/plain' which is not supported in using HTML.  You need to set the content type of the email as 'wp_mail_content_type' .
By: mimosa  |   Total Read: 889  |   Read more..

How to create dynamic array  

If you have some data or a big sentence then you can make a array with that data. Here is an example on how to create a dynamic array. $source = a,b,v,f,s,d;$allFields = explode(',', $source); $option = array();foreach($allFields as $key => $value): $option[$value] = $value;endforeach; print_r($option);  
By: mimosa  |   Total Read: 618  |   Read more..

Cakephp acl makes application slow  

If you are using ACL on cakephp you may face that the application is very slow because its load a lot of query from database.  My application became very slow but right not its in a faster than the last moment.   So you have to be very careful on the following thing to make it speed up. Make sure that your database is normalized properly You index field properly You table engine is innoDB. If you dont
By: Tech writer  |   Total Read: 1007  |   Read more..

re-capcha plugin is not working on WP Buddypress  

Facing problem using re-capcha plugin in WP Buddypress Theme   After installing the “buddypress-recaptcha” plugin in my buddypress blog I faced some problem such as I can’t create the re-capcha in my user registration form. To recover this problem I have to do the following steps.   First checking that if the 'register.php' contain the code  <?php do_action( 'bp_before_registration_submit_buttons' ) ?&g
By: mimosa  |   Total Read: 3026  |   Read more..

Wordpress function to get admin email address  

To get wordpress admin email address on your php page using the following wordpress function <?php get_bloginfo('admin_email') ?>
By: Tech writer  |   Total Read: 975  |   Read more..

PHP Mail function in wordpress  

Use the following line to send mail in wordpress
<?php wp_mail( $to, $subject, $message, $headers, $attachments ); ?>

The default sender name is "WordPress" and the default sender email address is These may be overridden by including a header like:

From: "Example User" <>

Change it otherwise it may skip the inbox and move
By: Tech writer  |   Total Read: 906  |   Read more..

Javascript email validation  

To validate email using javascript or email validation using jquery you can use the code of snipet x = $('#email1').val();
            var atpos=x.indexOf("@");
            var dotpos=x.lastIndexOf(".");
            if(atpos<1 || dotpos<atpos+2 || dotpos+2>=x.leng
By: Tech writer  |   Total Read: 1461  |   Read more..

Sending mail in wordpress but mail show all html code  

If you see your html code on your mail whenever you are sending from wordpress then you have make sure that you over writen it before your wp_mail function.

The default content type is 'text/plain' which does not allow using HTML. However, you can set the content type of the email by using the 'wp_mail_content_type' filter.

function wpse27856_set_content_type(){
        return &qu
By: Tech writer  |   Total Read: 803  |   Read more..

How to encrypt and decrypt data on cakephp url  

Encrypt your secret password with my_key

$secret = Security::cipher('my secret value', 'my_key');

By the follwoing line you can decrypt your secret vale

$nosecret = Security::cipher($secret, 'my_key');
By: Tech writer  |   Total Read: 2903  |   Read more..

How to create a new template type in Wordpress  

In your wordpress site if you want to create a new template type which will show on your create new page in admin panel then follow the given steps.

Create  a new php page and save it in your current theme .
Add the following code on the top of your page

Template Name: Full Width

now you can write a new design type here such as
By: Tech writer  |   Total Read: 2581  |   Read more..
Top 15 Posts