With get_terms(), the exclude parameter takes an array of term IDs, so just add the second term to the array:
$terms = get_terms( TribeEvents::TAXONOMY, array(
'orderby' => 'name',
'order' => 'ASC',
'exclude' => array( 77, 71 ),
) );
echo '<li>Category:</li>';
foreach ( $terms as $term ) {
echo '<li><a href="'.$url.'?tribe_eventcategory='.$term->term_taxonomy_id.'">'.$term->name.'</a></li>';
}
Related Posts:
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- Allow authors to post only in categories they create in WordPress
- Add custom field to attachments in a specific category
- How to Populate the list of custom post type categories
- Php string not working in WordPress Functions.php [duplicate]
- Problems with function on function.php
- Use template for posts with a particular category grandparent
- Check if Product is in a Specific Category in Functions.php
- Woocommerce – remove product from category
- get current product name in functions.php
- get post based on category chosen in drop down – The ajax method
- Swapping wp_dropdown_categories function with wp_category_checklist
- Pass Category Name, Description and Photo into variables to pass to jQuery
- How to pick the default selected value in wordpress dropdown?
- Get page that displays all children of taxonomy parent
- Dilemma of Populating all the categories in a drop down list
- Edit the_category (); for a hierarchical display
- Displaying posts based on category
- How to get current post category details inside “loop”?
- Show all tags within a category?
- Post not populating for custom post type based on category selection
- Dropdown category field inside repeatable metabox
- Display Visual Composer shortcode if a post belongs in specific categories
- Get parent category name when only child category is applied to a product
- How to move a post from one category to another
- Notice: Undefined variable
- Hide a specific category title from displaying on site
- Populate Posts based on category selected using AJAX that means without page refresh
- All categories options or All categories not Populating
- Customizing the output of the archive and category widget without altering the original behavior of the widget
- PHP get_category() function redeclared
- Get category id for a custom category and display it in a class
- Trying to see if page is category or single and displaying title with appropriate heading tag
- Displaying categories
- How to insert the first letter in uppercase [closed]
- Hide child of parent categories already hidden with “get_terms_args” – Woocommerce
- Exclude a category ID from the following function
- PHP code in page template vs functions
- Apply class to every paragraph that holds image?
- username_exists() function can’t be access without logging in
- wp_set_object_terms and arrays
- How to get the original price of the product in woocommerce?
- How to use WordPress (PHP) functions in AngularJS partials files?
- How to add 2 posts under another post? Formatting should be intact
- Edit category output
- Different background-image by category
- enqueue multiple Google fonts with multiple weights and styles (italic)
- What is the fastest way to load PHP functions that are only used in one theme template?
- add_action shortcut?
- WSoD being caused by this piece of code
- How to complete two other input fields, completed the first
- how do I get a specific post from a post with a subcategory in WP
- Function to capture a value and store it in a variable
- Checking array against author id in loop
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Scrape external webpage for first image and add it to new post
- Trying to retrieve post meta
- Need help enqueueing webfonts
- Redirect to another page using contact form 7? [closed]
- Error call_user_func_array() expects parameter 1 to be a valid callback when using image_size_names_choose
- How to remove ?p= from wordpress short links
- Need php code’s output to display underneath a Divi Module
- WP_Query | IF within $args array | Help me only add specific arguments if the argument is not blank
- How to make function appear in sentence?
- How to define a variable already defined in a plugin function?
- How to use mysql LIKE with wpdb?
- woocommerce related product title length
- Custom query vars filters problem with pagination
- Do not duplicate posts with multiple categories in multiple loops
- Query for user roles
- Use SCSSPHP to compile Theme Customizer Values into .SCSS files ready to compile to CSS
- Displaying Event within two given time frames
- Is there a way to create a “copy post” link?
- Adding wp_list_categories to a specific div that was appended using jQuery
- Use of antispambot with $curauth->email
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- posts_per_page displays only 2 posts instead of 4 posts
- Access to “My Site” is missing from the admin bar
- How to redirect (301) trashed post to it’s parent taxonomy TERM ARCHIVE instead of 404 page
- How to call WordPress PHP file using external js file
- Using get_theme_mod with checkbox to display content
- Rearrange get_categories array compared to another array
- use system script advertising in wordpress multisite
- Styling admin page rows in order of importance (checkboxes)
- Insert wordpress tags below posts via functions.php
- Help with my first Metabox helper class
- Pagenav Not appearing on custom Template
- Remove the_content From Loop
- My title is showing after the shortcode
- Load a Header in wordpress
- Trouble figuring out how to get my button to submit comment
- Adding multiple conditional tags in a function?
- Understanding responsive imagery
- How to get meta box labels?
- How do I stylize selected comments?
- “acf/load_field” Critical error upon saving/updating WooCommerce products [closed]
- How do I make a shortcode to display Dokan seller badge list?
- Function extension
- Developing a “fallback” for empty wp_query results based on post dates
- How can I process a form submission from an HTTP POST request?