wordpress


Filters are the hooks that WordPress launches to modify text of various types before adding it to the database or sending it to the browser screen. We can add filters to our functions.php file, within our theme, to alter what content a theme provides by default. Syntax: <?php add_filter( $tag, $function_to_add, $priority, $accepted_args ); ?> The excerpt is commonly shown on the homepage or a page such as categories of a website where multiple posts are shown, to displays a … Continue reading

wordpress


As of WordPress 2.5, and beyond, the <meta name=”generator” content=”WordPress” /> meta tag was moved from the template to the core of WordPress. This means that you can no longer simply remove the call from the template. We now need to include a function in functions.php In order to remove meta name generator content tag. Why would you want to do this I hear you ask? Amazingly as basic as this meta information may appear, you are actually broadcasting to … Continue reading