# Comparison

## **Current post with field value comparison**

To compare with a field value, you can use $post$.field-name, where 'field-name' should be replaced with the name of your target field. In this way, the plugin will automatically get and use a value of the field from the current page in the query.

{% hint style="success" %}
Example usage: find all posts where a 'select' field has the same option chosen, as the option chosen on the current page.
{% endhint %}

## **Date to current date and time comparison**

To compare the value in an ACF Date or an ACF Date/Time field to the current date and time by using $now$ as the value to compare by.

{% hint style="info" %}
Note: $now$ will be replaced with the current date and time the page is viewed. \
You can also add or remove periods. For example, you can use '$now$ + 1 day' or '$now$ - 1 week'. The following period keys are supported: minute, hour, day, week and month.
{% endhint %}

{% hint style="info" %}
Example usage: find all posts where 'date' field value is "Bigger than" current date and time. So as to show only upcoming events in the posts grid or list.
{% endhint %}

### Extended support for Post\_object and Relationship fields

Advanced Views Pro supports Post\_object and Relationship field types in the [Meta filters](/advanced-views/query-content/meta-filters-pro.md).

### Step by step guide

See the [how to guide here](/advanced-views/guides/display-employees-cpt-of-a-company-cpt.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wplake.gitbook.io/advanced-views/query-content/meta-filters-pro/comparison.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
