Skip to content

Instantly share code, notes, and snippets.

Michelle Stein chellestein

Block or report user

Report or block chellestein

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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',
You can’t perform that action at this time.