The following code will display the description text field of any attachment at the bottom of the attachment page. Copy and paste this snippet at the very bottom of your functions.php file. (if you are using a child theme, don’t forget to start your functions.php file with <?php ) add_action( […]
Function: is_singular()
2 posts
Like often in WordPress, the simpliest way to alter the core is to…dive in it and look for hooks! In the file wp-includes/default-widgets.php there is a filter hook called ‘widget_title’. That’s the one we need. It requires 3 parameters to work : the title we want to return, the instance […]