Query Help - tags and properties

I would like a query that is filtered on a tag in the page and displays a page property in the returned result.

Page details

  • Date: [[Mar 27th, 2025]]
  • Topic: AP Town Hall
  • Tags: #ap
  • Topic:: AP Town Hall

Query - which fails
{{query (and (#ap :properties Topic))}})

I am open to changing my page template. I just want a result with the page that has the tag and then the value of that property.

Thanks for any help!!

  • To filter blocks: {{query (and (property :tags "#ap") (property :topic))}}
  • To filter pages: {{query (and (page-tags [[ap]]) (page-property :topic))}}

Thanks! For me the bottom one doesn’t work: {{query (and (page-tags [[ap]]) (page-property :topic))}}

Should it be catching the file if it is composed like this?

20250327152149

Date: [[Mar 27th, 2025]]
Topic: AP Town Hall - !!
Tags: #ap

The colon (:) should be double (::), i.e.:

Topic:: AP Town Hall - !!
Tags:: #ap

Sorry - I get it now! Thanks.

I had thought there were 2 ways of setting properties on a page - and the more I think about it - ugh - I am sorry for being thick. Thanks so much for your help !!!