Content by label macro not working
Asked by Cass Peters:

New user here. I'm trying to use labels to automatically create lists of useful pages, but the macro will only display "There is no content with the specified labels", despite there being pages with those labels.

I've tested it with multiple labels, cleared my cache, and logged in/out as recommended by other threads. Some people recommended reindexing, but their explanations of how to do it seem to be based on a previous settings configuration, because I cannot find the path specified.

This seems like a really old issue (going back at least to 2016) and its been marked solved in a few threads, but I'm still coming up against it. Can someone please help? I don't want to have to create those lists manually if I can avoid it.

Thanks in advance...


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Cass Peters](/t5/user/viewprofilepage/user-id/5049766) ,

welcome to the Atlassian community!

I just tested tis behaviour and, as per [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) , it works fine. Please provide us more information so that we can support you.

Fabio


author: Alex Koxaras _Relational_
body: Hi [@Cass Peters](/t5/user/viewprofilepage/user-id/5049766) and welcome to the community!

I tried the content by label, and on my instance it works fine. Can you post a screenshot of your macro config, as well as the result?

comments: author: Cass Peters
body: I'm unsure of what you mean, here's what the edit screen looks like.

\<iframe id="_pericles_content_iframe" style="border: none;" data-darkreader-inline-bgimage="" data-darkreader-inline-bgcolor="" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left=""\>\</iframe\>


author: Cass Peters
body: I'm trying to post an image but it keeps telling me there's prohibited html in my messages... this has been an ongoing issue - it took me over a day just to post this thread in the first place

\<iframe id="_pericles_content_iframe" style="border: none;" data-darkreader-inline-bgimage="" data-darkreader-inline-bgcolor="" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left=""\>\</iframe\>


author: Cass Peters
body: I'm not putting in any iframe data when I make these comments.

\<iframe id="_pericles_content_iframe" style="border: none;" data-darkreader-inline-bgimage="" data-darkreader-inline-bgcolor="" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left=""\>\</iframe\>


author: Cass Peters
body: ![macro.png](https://community.atlassian.com/t5/image/serverpage/image-id/219823iF566577B169825B5/image-size/large?v=v2&px=999 "macro.png")


author: Alex Koxaras _Relational_
body: If you press the icon next to "preview", it doesnt yield any results?

![resultssss.png](https://community.atlassian.com/t5/image/serverpage/image-id/219831iDEA0664D83AB0948/image-size/large?v=v2&px=999 "resultssss.png")


author: Cass Peters
body: Nope, just an empty macro with the message:

**Content by label**

There is no content with the specified labels

\<iframe id="_pericles_content_iframe" style="border: none;" data-darkreader-inline-bgimage="" data-darkreader-inline-bgcolor="" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left=""\>\</iframe\>


author: Cass Peters
body: Incidentally, do you have any idea why this iframe code keeps appearing in my posts?

\<iframe id="_pericles_content_iframe" style="border: none;" data-darkreader-inline-bgimage="" data-darkreader-inline-bgcolor="" data-darkreader-inline-border-top="" data-darkreader-inline-border-right="" data-darkreader-inline-border-bottom="" data-darkreader-inline-border-left=""\>\</iframe\>


author: Alex Koxaras _Relational_
body: [@Cass Peters](/t5/user/viewprofilepage/user-id/5049766) maybe because you are pasting from a dark theme.

Can you also post, just for the sake of it, a screenshot of a page with that label?

Can you also try using another label?


author: Cass Peters
body: I've tried the macro with other labels to no avail - here's a screenshot of a labeled page with the edit labels menu open. And I've turned off my dark reader to see if that fixed the iframe issue. ![labels.png](https://community.atlassian.com/t5/image/serverpage/image-id/219839i893E88982EC5C8B6/image-size/large?v=v2&px=999 "labels.png")

\<iframe id="_pericles_content_iframe" style="border: none;"\>\</iframe\>


Tags: cloud

confluence-cloud

label