NO BUG: Showing the post category in a text field causes front end errors

Browser: Chrome 110
OS: macOS

Video: CleanShot 2023-03-16 at 13.32.25 · CleanShot Cloud

Hi Bricks team,

I experience a strange issue when trying to show the categories of the posts.
I show it in the short video. Other dynamic queries work, e.g. authors name.

Hint: I had 3 other categories before, deleted them, made 3 new categories. Shouldn’t be a problem, shouldn’t it?

Thank your for looking into it :pray:t2:

Bricks regards,

Hi Heiko,
Thanks so much for your report!

The terms are output as a link. However, since you already have a link around your card, this leads to problems, since a link in a link is not allowed:

The HTML specs say that there must be no interactive content in an <a>. The <a> is considered interactive content.

However, you can disable the term links with a filter:

Alternatively, you can write your own PHP function that just returns the name and output it using {echo:yourFunction}.

Best regards,

1 Like

Hi Timmse,

oh gosh, that was then stupid of me. Thank you so much for clarifying! :pray:

I did as you said and all works. :ok_hand:

Thank you again for taking the time to explain this. Very much appreciated.

Bricks regards,

1 Like