Skip to content

Instantly share code, notes, and snippets.


Michelle Stein chellestein

View GitHub Profile
chellestein / gist:b08531ae1984971c3ac42fe1b1926ace
Last active Oct 28, 2016
WordPress Function to Exclude Categories from Front Page
View gist:b08531ae1984971c3ac42fe1b1926ace
<?php //
* Do Not Include Above Opening PHP tag
* Copy/Paste Below code into functions file
* Replace the -1 to your unique category id number
* More than 1 category can be separated by a comma
//* Function to Remove categories
function exclude_category_home( $query ) {
chellestein / gist:2f60a665e8c07c62a747
Last active Jul 14, 2019
Add Favorite Posts to Ultimate Member User Profile Tabs in WordPress
View gist:2f60a665e8c07c62a747
// Customize Profile Tabs
/* add a custom tab to show user pages */
add_filter('um_profile_tabs', 'pages_tab', 1000 );
function pages_tab( $tabs ) {
$tabs['pages'] = array(
'name' => 'Favorite Posts',