Exclude pages from admin pages list by ID
Adding this snippet to the functions.php of your wordpress theme will let you remove pages from the admin pages list. Just update the list of page IDs within the array.
read moreReturn ID if parent page exists
This is a great little snippet that will let you return the ID of the parent page if the page has a parent. Just add this snippet to the functions.php of your wordpress theme and your ready to get the parent page ID.
read moreAdd post ID to posts, pages admin columns
Adding this snippet to the functions.php of your wordpress theme will add ID to post and pages admin columns.
read morethis months featured snippets
Remove every class and id from the wp_nav_menu
Adding this snippet to the functions.php of your wordpress theme will remove nearly every class and id from the wp_nav_menu except for the current-menu-item class. This is a great little snippet that will make your wp_nav_menu a little cleaner enjoy.
read moreAdd new column with media ID to media library
Adding this snippet to the functions.php of your wordpress theme will add a new column within the media library with the attachment ID.
read moreGet the page ID by the page name
Add the first snippet into the functions.php and the second snippet into one of your wordpress template files. This snippet will allow you to return a page ID by the page name. Don’t forget to change PAGE_NAME to the name of the page you would like to return the ID of.
read moreAllow more HTML tags in the editor
By default the wordpress editor does not allow some tags and will strip them out. Adding this snippet to the functions.php of your wordpress theme will enable you to use HTML tags like iframe, name, class etc…
read moreGet post ID outside of loop
Adding this PHP code snippet to your single.php will return the current post ID.
read more












