Wordpress Archive

Add Dynamic Sidebar in WordPress

Steps for how to add Dynamic Sidebar in WordPress:- 1. Register sidebar in function.php as other sidebar registered, we can copy and past the as given in function.php

get_permalink function

get_permalink() is a function in WordPress through which we can get the link of post or page. This function is helpful when we are customizing our posts or page. For

@ Magic

@ is use to avoid the warning. Example :- when we use session_start(), some time it will display the error “Warning: Cannot modify header information – headers already sent

Change Date Format in php

How to change date format in php? we can display date in different formats in php as given:- $dt = “2001/02/02”; echo date(‘d

Calculate Age out of Date Of Birth

Generally we store date of birth in our database and in front end we have to display age also. In php

Custom Post in WordPress

In below example I have added 2 custom posts in WordPress (with different parameters) Videos News Add the following code in functions.php and it will create menu in admin panel

Disable Updates in WordPress

To disable the update in WordPress Write these lines in functions.php of your theme folder. To Disable Theme Updates # 3.0+ remove_action( ‘load-update-core.php’, ‘wp_update_themes’ ); add_filter( ‘pre_site_transient_update_themes’, create_function( ‘$a’,

Filter Search In WordPress

We can filter our search in WordPress according to posts or custom post. Like I have two custom posts type videos and news and I want WordPress

Customize the WordPress Search

We can change the design and add additional fundability in the search widget provided by WordPress. Make a file “searchform.php“ in your theme folder and add the blow