Skip to content
  • Home
  • PluginsExpand
    • WP Recipe Maker
    • WP Ultimate Post Grid
    • Easy Affiliate Links
    • Easy Image Collage
    • All-Access Pass
  • FAQ & Support
  • About Us
  • Blog
  • Your Account
Bootstrapped Ventures Knowledge Base
  • Get the Plugin
  • DocumentationExpand
    • WP Recipe Maker
    • WP Ultimate Post Grid
    • Easy Affiliate Links
    • Visual Link Preview
    • Custom Related Posts
  • Open a Support Ticket
Bootstrapped Ventures Knowledge Base

Getting Started

6
  • Installing WP Ultimate Post Grid
  • Activating your license key
  • Updating WP Ultimate Post Grid
  • Creating a Grid
  • Adding a Grid to your Website
  • Grid Template Editor

Creating a Grid

1
  • Creating a Grid
  • Grid Edit Screen
    • General
    • Data Source
    • Limit Items
    • Filters
    • Layout
    • Item
    • Pagination
    • Other
  • Grid Filters
    • Isotope Filter
    • Dropdown Filter
    • Checkboxes Filter
    • Text Search Filter
    • Clear All Filter Selections Button
    • Custom HTML
    • Dynamic Order
    • Responsive Filter Display
  • Grid Pagination
    • Divide posts in Pages
    • Use a “Load More” button
    • Infinite Scroll Load
    • Load more posts on filter

Template Editor

4
  • Grid Template Editor
  • Classes you can use in the grid template editor
  • Using conditions in the grid template
  • Using ACF or other Custom Fields

Advanced Features

8
  • Cloning a Grid
  • Limit Items Dynamically
  • Custom filter term order
  • Default Filter Selections
  • Custom Field Filters
  • Using WP Extended Search to alter the Text Search filter
  • Set Custom Links and Images
  • How to Center the Grid

WPUPG for Developers

3
  • Accessing or manipulating a grid in the front-end
  • Custom filter term order
  • Use a grid for the search or archive page

Announcements

3
  • WP Ultimate Post Grid Changelog
  • WP Ultimate Post Grid 3.0.0
  • WP Ultimate Post Grid Legacy

Debugging Plugin Issues

3
  • Debugging plugin problems
  • The downloaded plugin is not a zip archive
  • Creating a Temporary Login
View Categories
  • Home
  • Documentation
  • WP Ultimate Post Grid
  • Advanced Features

Custom filter term order

As of version 3.6.0, the plugin allows you to set a custom term order while editing the grid filter. Under “Filter Terms” set the “Term Order” setting to “Custom Order”. This will get you a new “Custom Terms Order” tab that shows all the terms for this filter and allows you to drag and drop them to reorder:

Setting a custom term order using custom code

A fully custom filter term order is also possible by using custom code and making use of our different filter plugin hooks.

The code examples below can be added to your theme’s functions.php file, but take note that you’ll have to adjust them to your situation. Taxonomy, grid and term names will have to get changed.

Changing the term order for the isotope filter

function wpupg_filter_isotope_buttons( $buttons, $filter, $grid, $args ) {
	// Uncomment the var_dump to find out the current order of the buttons.
	//var_dump( $buttons );

	// This array can be reordered or reconstructed before returning it again.
	return $buttons;
}
add_filter( 'wpupg_filter_isotope_buttons', 'wpupg_filter_isotope_buttons', 10, 4 );

The key used in the $buttons array can be ignored when just changing the order.

Changing the term order for the dropdown filter

function wpupg_filter_dropdown_terms( $term_output, $filter, $grid, $args ) {
	// Uncomment the var_dump to find out the current order of the buttons.
	// var_dump( $term_output );

	// This array can be reorder or reconstructed before returning it again.
	return $term_output;
}
add_filter( 'wpupg_filter_dropdown_terms', 'wpupg_filter_dropdown_terms', 10, 4 );

$term_output is a multidimensional array to account for parent child terms. Key “0” will get output as parents. Any other keys will need to use the ID of the parent that this term should be under. When there are no parent-child terms, you only need key “0”.

Changing the term order for the checkboxes filter

function wpupg_filter_checkboxes_terms( $term_output, $filter, $grid, $args ) {
	// Uncomment the var_dump to find out the current order of the buttons.
	// var_dump( $term_output );

	// This array can be reorder or reconstructed before returning it again.
	return $term_output;
}
add_filter( 'wpupg_filter_checkboxes_terms', 'wpupg_filter_checkboxes_terms', 10, 4 );

Uses the same structure as the dropdown filter. See above.

Updated on December 2, 2024
Limit Items DynamicallyDefault Filter Selections
Table of Contents
  • Setting a custom term order using custom code
    • Changing the term order for the isotope filter
    • Changing the term order for the dropdown filter
    • Changing the term order for the checkboxes filter

© 2025 Bootstrapped Ventures · BE0634.767.406
Privacy Policy

  • Bootstrapped Ventures
  • Plugins
    • WP Recipe Maker
      • Demo
      • Documentation
      • Get the Plugin
    • WP Ultimate Post Grid
    • Easy Affiliate Links
    • Easy Image Collage
    • All-Access Pass
  • FAQ & Support
    • Knowledge Base
    • Documentation
  • About Us
  • Blog
  • Your Account