• Resolved quartney

    (@quartney)


    The shortcode used to be working correctly; I’m not sure at what point it stopped.

    Two things: the filter by id is not working, and the orderby last_name isn’t working. (for example: the first pdb_list code should display 4 records, but instead shows many more; the third code should order by last name but instead orders by date created)

    <h4>PIs for Original Effort and Organizers, 2004 Workshop</h4>
    [pdb_list filter='id>1346&id<1351' orderby="last_name" order="asc" fields="first_name, last_name, title, affiliation, state, country, species"]
    <h4>Attendees of 2004 Workshop</h4>
    [pdb_list filter='id>1350&id<1369' orderby="last_name" order="asc" fields="first_name, last_name, title, affiliation, state, country, species"]
    <h4>New Members</h4>
    [pdb_list filter='id>1368' orderby="last_name" order="asc" fields="first_name, last_name, title, affiliation, state, country, species"]

    http://www.oyster-restoration.org/participants/

    https://wordpress.org/plugins/participants-database/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xnau webdesign

    (@xnau)

    That is a bug…sorry, I can’t tell you exactly what the deal is right now. Is there another field you can use to filter? Looks like the id field is not working there.

    Plugin Author xnau webdesign

    (@xnau)

    OK, I found out what the deal is: the < and > signs are getting altered by WordPress because they look like HTML tags.

    To get around this you need to use the HTML entities for < and > in the shortcode filter

    Problem is, I can’t figure out how to post them here, they just get converted to the literal symbol…

    they are & lt; for < and & gt; for >

    remove the space after the ‘&’ and they will work.

    Does that make sense? I can’t just post an example, it gets messed up.

    Thread Starter quartney

    (@quartney)

    Works perfectly now, thank you!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘shortcode filters not working correctly’ is closed to new replies.