Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter lenningrl

    (@lenningrl)

    OK. So do I understand correctly then that ‘contains’ will be an approximate search, ‘is’ will be an exact search, and ‘is like’ will be an exact search allowing wildcards?

    Thread Starter lenningrl

    (@lenningrl)

    I should have added: a reason this is so needed for me is that I use the ACF ‘user’ field type in my topics and it is not at all handy when 2 users have the same display name.

    Thread Starter lenningrl

    (@lenningrl)

    Awesome, Eliot! Thanks so much.

    Thread Starter lenningrl

    (@lenningrl)

    I’ve now resolved the remaining issues (which seem to be the fault of the other plugin) by using the pass function as I have done before. I think I am good to go for now! Thanks, Eliot! You rock, my friend.

    Thread Starter lenningrl

    (@lenningrl)

    That does indeed seem to address the main issue with my game viewers not working! Now the HTML escape problem seems under control. However, a few issues still persist, so I’m working on that. It seems that field and content aren’t working precisely the same way within the loop that they were before. And this does also involve another plugin so I’ve got a bit of work to do to narrow down what’s really the problem. But basically, in some circumstances neither field nor content yields data that comes from the record being looped. This may be aggravated by the fact that I’ve used a custom field called ‘title’ in a forum (which is what is being looped) and so sometimes it’s using the field that I’ve also called ‘title’ being accessed from another item within a nested loop. Looking back I might not have used a custom field name that is often used elsewhere as a predefined field, but hindsight is always 20/20.

    Thanks so much for your diligent work on this, Eliot!!!

    Thread Starter lenningrl

    (@lenningrl)

    I guess that I got bleary-eyed last night and was trying a noescape parameter instead of unescape. However, after fixing that this afternoon it still hasn’t helped with the problem. In fact, if I add the unescape parameter to each of the loops in the nest it causes other problems (breaks the nesting). Using it with field doesn’t break anything else, but also does not fix things. It just feels like I’m probably missing something fairly straight-forward here somehow.

    Thread Starter lenningrl

    (@lenningrl)

    Well, when I remove the pgn wrapper I can see the quotes displayed on the page, but when I view the page source I can see that they are still HTML escaped, not like in the first code example that is working.

    Thread Starter lenningrl

    (@lenningrl)

    I have also noticed on that page that a nested shortcode from another plugin (Shortcodes Ultimate) is also busted here that was working and that works elsewhere that it isn’t nested. So perhaps there’s more afoot here. But still almost certainly related to 4.2.3 as I don’t think that plugin has updated for awhile.

    Thread Starter lenningrl

    (@lenningrl)

    I tried the unescape parameter and removing the quotes, but that doesn’t seem to solve the problem.

    Thread Starter lenningrl

    (@lenningrl)

    Yes, I am using a loop inside of a loop inside of a loop. Here is the page: http://slowchessleague.org/current-tournaments-status/

    I have temporarily made it available to non-members so that you can see it.

    If you are familiar with chess, the problem is the game viewers in the top section. They used to display the games fine but now don’t. But they work elsewhere on the site without the nesting as with the first example above.

    Thread Starter lenningrl

    (@lenningrl)

    Well, this code snippet is working:

    [pgn]
    [content field=”pgn”]
    [/pgn]

    But this code snippet used to work but all of a sudden doesn’t:

    [pgn]
    [–loop type=”topic” parent=this orderby=title field=topic_type value=”1″]
    [content field=”pgn”]
    [/–loop]
    [/pgn]

    The second example is within a set of nested loops and involves also tabs and spoilers using Ultimate Shortcodes.

    When I look at the page source I can see that in the first instance the quotes are handled normally, but in the second instance I see what you are calling HTML escaped. This must be a result of 4.2.3, but I’m clueless as to why or how to fix it.

    lenningrl

    (@lenningrl)

    Such a simple thing and so very handy for numbering the tabs from another plugin, but I never could find a shortcode to do this before. Thanks so much for this tip!

    Thread Starter lenningrl

    (@lenningrl)

    At a glance it looks like this fixes it! Thanks so much, Eliot! I very much appreciate how responsive you’ve been with this problem. And your plug-in is very useful. I’ll be adding a positive review for this plugin.

    Thread Starter lenningrl

    (@lenningrl)

    For the case we are looking at, here’s the output copied directly:

    404 is not equal to 404

    Note: I have both white_player and black_player fields in the code and black_player is the one that isn’t working right now in this case, so I’ve substituted that field in your code.

    Thread Starter lenningrl

    (@lenningrl)

Viewing 15 replies - 1 through 15 (of 18 total)