Warning: Undefined array key "title" in /home/u593943216/domains/wp-experts.in/public_html/secure_content/themes/wp-experts/inc/classes/class-hooks.php on line 151
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
Use this code for reterive page detail. <ul id=”red”> <?php global $wpdb; $curent_id =$post->ID; $myPages = $wpdb->get_col(“SELECT ID,guid FROM $wpdb->posts WHERE post_parent =’$curent_id’ AND post_status=’publish’ AND post_type=’page'”); foreach($myPages as $myPagess ) { $numberPages = $wpdb->get_var(“SELECT count(*) FROM $wpdb->posts WHERE post_parent =’$myPagess’ AND post_status=’publish’ AND post_type=’page'”); if($numberPages==0) { echo “<li><span><a href='”.get_permalink($myPagess).”‘>”.get_the_title($myPagess).”</a></span></li>”; } else { //echo “SELECT
Create new file forget-password.php and paste below given code in this. Create new page Forgot password and select forgetpassword template here <?php /** * Template Name: Forgot password Template * * A custom page template without sidebar. * * The “Template Name:” bit above allows this to be selectable * from a dropdown menu on
In my server there are some sites from Turkey, some of from England, some of from Germany. I have got timezone problem in that sites. I found easy solution for this. Just add .htaccess this code: php_value date.timezone "Europe/Istanbul" or php_value date.timezone "America/Chicago" You can test date is change or not <?php echo date('d-m-Y H:i:s');
Some browsers will not allow you to close the window using window.close() unless the script opened the window. This is a little annoying sometimes. But there is a workaround to resolve this issue. If you observe the error message that is thrown by Mozilla Firefox, “Scripts may not close windows that were not opened by