Author: ShairyPortfolio
-

WordPress In Built Functions -11
Function Name Description Header and Footer Function get header (); get footer(); These functions import the content of header.php and footer.php wp_head (); It is a hook that allows WordPress to add HTML, scripts and stylesheets in the <head> tags of your theme. Used in header.php wp_footer(); To load java script files at…
-

Excerpt in WordPress -9
the_excerpt () function is used in WordPress for article summary and WordPress post with a link to the whole content. In another way we can create our own customize function with button and permalink also and the code is given below: //This function is used to get particular character function get_excerpt($count) { $permalink = get_permalink($post->ID); $excerpt = get_the_content(); $excerpt = strip_tags($excerpt); $excerpt = substr($excerpt, 0, $count);…