Support » Plugin: Preserved HTML Editor Markup Plus » Using with PODS breaks WHERE clause

  • First, thank you for this plugin! This is exactly what I have been searching for months!

    And here is my very special case.
    I use PODS and this shortcode breaks when plugin is active:

    [pods name="classes" orderby="d.class_date" limit="-1" where="d.class_date > NOW()" template="class_list_item"]

    I figured out that problem only exists when that greater sign used in where clause.
    Looks like plugin thinks that it’s a part of tag.

    Then I found a hack:
    [pods name="classes" orderby="d.class_date" limit="-1" where="/* < */ d.class_date > NOW()" template="class_list_item"]

    /* < */ is mysql comment that doesn’t affect the query and my page works great.
    But… After switching to visual editor and back I got:

    [pods name="classes" orderby="d.class_date" limit="-1" where="/* < */ d.class_date > NOW()" template="class_list_item"]

    I hope you can fix it 🙂
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The last code block must be:
    [pods name="classes" orderby="d.class_date" limit="-1" where="/* & lt; */ d.class_date & gt; NOW()" template="class_list_item"]

    Plugin Author J-Ro

    (@j-ro)

    Hey enuriru, I’d say this probably isn’t going to work well with custom snippets like that, because it looks like HTML in some ways with the carrots.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using with PODS breaks WHERE clause’ is closed to new replies.