How can create your custom "Breadcrumbs" for your wordpress site?

You can create our custom breadcrumbs without any plugin by using this code. For use this code just copy and paste into your themes function.php file // Create custom Breadcrumbs by raghunath.0087@gmail.com function the_crumbs() {     if (!is_front_page()) {         echo ‘<a href=”‘;         echo get_option(‘home’);         echo ‘”>’;         echo …

How can change wordpress defalut gallery layout using hooks?

We can menage wordpress gallery css or HTML just using this code.For your custom gallery layout, copy this code and paste it itno your themes function.php file  /** Create own custom gallery layout -raghu */ function custom_gallery( $output, $attr ){     global $post, $wp_locale;     static $instance = 0; $instance++; // We’re trusting author input, …

How can change content/keyword in "From:" in mail address

We can change “From:” address using hooks in wordpress. Just copy this code and paste into your themes function.php file.  /* Custom mail content */  /* Custom mail content */     //email from name function function my_wp_mail_from_name($name) {     return get_bloginfo(‘name’); } //email from email function function my_wp_mail_from($content_type) {   return get_bloginfo(‘admin_email’); } add_filter(‘wp_mail_from’,’my_wp_mail_from’); add_filter(‘wp_mail_from_name’,’my_wp_mail_from_name’);

How to edit export functionality in newsletter

 <?php /*header(‘Content-Type: application/octet-stream’); header(‘Content-Disposition: attachment; filename=”newsletter-subscribers.csv”‘);*/ header(“Pragma: public”); header(“Expires: 0”); header(“Cache-Control: must-revalidate, post-check=0, pre-check=0”); header(“Content-Type: application/force-download”); header(“Content-Type: application/octet-stream”); header(“Content-Type: application/download”);; header(“Content-Disposition: attachment;filename=member_report.xls “); header(“Content-Transfer-Encoding: binary “); $keys = $wpdb->get_results(“select distinct name from ” . $wpdb->prefix . “newsletter_profiles order by name”); ?> <style type=”text/css”> .border1     {         border-left:#000000 solid 1px;         border-top:#000000 solid …

How create own custom smart gallery & shortcode using NextGen Gallery!

For integrate custom Gallery using NexnGen Gallery just follow code given below You can add JQuery Image gallery in your wordpress site using this code. /** Custom gallery function **/ function rgallery_func($atts) { extract(shortcode_atts(array( ‘id’ => ‘no foo’, ‘bar’ => ‘default bar’ ), $atts)); $ID=$atts[id]; //retrieve NextGen Gallery ID passed in short code /** Get Main …

How can retrieve post specific attachment all image

For retrieve/get any one post specific attachment all image please use this code. Copy this code and put in where you want add in your themes core files. if ( have_posts() ) : while ( have_posts() ) : the_post(); $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_status’ => null, ‘post_parent’ =>PUT HERE POST-ID …