• Query Loops don’t capture Pattern contents, hidden or not.

    Add a sync’d Pattern, call it My Hidden Pattern. Into the pattern add a Custom HTML block.

    <div hidden>xyz12345</div>
    <div style:"display: none">xyz12345</div>
    <div>xyz12345</div>

    Create a Page titled “The Loop”. In the Post add a Query Loop and filter on Keyword: xyz12345

    Create a Page “Test One”. Add “My Hidden Pattern”.

    Create a Page titled “Test Two”. In the Post add a Custom Html block with the content:

    <div hidden>xyz12345</div>
    <div style:"display: none">xyz12345</div>
    <div>xyz12345</div>

    Result: The page “The Loop” displays “Test Two” (the hardcoded html), but “Not Test One” (the pattern).

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • The Query Loop doesn’t capture hidden content from patterns because patterns, especially hidden or styled elements (<div hidden> or display: none), aren’t indexed the same way as hardcoded HTML on the page. You can try:

    1. Remove hidden styles temporarily in the pattern to check if it’s recognized.
    2. Use visible content in the pattern to test if the Query Loop recognizes it.
    3. Hardcode the HTML directly on the page instead of using a pattern, since that works with the Query Loop.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.