---
title: "Query Loop (Adv) Block: Split Character Filter"
source: "https://docs.nexcess.com/software/kadence/blocks/split-character-filter-query-loop-adv-block/"
description: "The kadence_blocks_pro_query_block_split_character filter allows you to change the character used to split values in the Query Loop (Adv) Block (included in Kad…"
vertical: "Software"
area: "Kadence Blocks"
date: "2025-09-25"
last_modified: "2026-07-02"
---

# Query Loop (Adv) Block: Split Character Filter

The ***kadence\_blocks\_pro\_query\_block\_split\_character*** filter allows you to change the character used to **split values** in the **[Query Loop (Adv) Block](https://docs.nexcess.com/software/kadence/blocks/advanced-query-loop-block/)** (included in Kadence Blocks Pro).

This is especially useful when your custom field values contain commas (`,`). Such as names with suffixes or city-country pairs, which the default behavior would incorrectly split.

## The Problem

When using the **Query Loop (Adv) Block** to filter posts by **custom field values** that include commas, like:

- `John Smith, Jr.`
- `Carlos Sainz, Sr.`
- `Paris, France`
- `Manila, Philippines`

…the default split character (`,`) causes these values to break into separate filter terms. This results in **no results** being returned.

## Solution

Use the `kadence_blocks_pro_query_block_split_character` filter to change the default comma delimiter to a different character that won’t conflict with your field values, such as a pipe (|).

Add this PHP code snippet to your website ***(this will get applied to all Query Loop(Adv) block instances on your website)***:

```
// Change the Kadence Blocks Pro Advanced Query Loop Block filter split character (default is ",")
add_filter( 'kadence_blocks_pro_query_block_split_character', function() {
    return '|'; // Use pipe instead of comma
});
```

Here’s our guide: ***[How to add a custom filter or function with Code Snippets](https://docs.nexcess.com/software/kadence/blocks/add-custom-filter-or-function-with-code-snippets/)***

**Note**: The new split character *must not appear in your custom field values*.

Now, Query Loop (Adv) filters will treat each custom field text as a full value and query the posts correctly.
