WordPress.org

Forums

WP Tiles
[resolved] Dynamic filter by meta_value (4 posts)

  1. tmrc
    Member
    Posted 1 year ago #

    Can you suggest me the best method to implement dynamic filtering of tiles based on meta_key and meta_value information?

    Thank you!

    http://wordpress.org/plugins/wp-tiles/

  2. Mike Martel
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there!

    You can get as custom as you want with WP Tiles by setting up a custom query and using the the_loop_wp_tiles() template tag. You can make any query you want, as long as it yields a main loop. See the FAQ for more info on how this template tag works.

    Cheers,
    Mike

  3. tmrc
    Member
    Posted 1 year ago #

    Hi!

    I am still not sure how to implement in to be dynamic via javascript? I am trying to do that without page refresh.

    BTW, how can I search meta_value text with just some parts of it? Like if I want to search with asterisk (eg "*keyword*"), or regex.

  4. Mike Martel
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Unfortunately, WP Tiles doesn't currently support front-end filtering. This is on the road map, but admittedly quite far away. Check out the JS it is based on (Tiles.js) to build a custom filtering solution.

    You can query meta value using the LIKE operator and use the fitting MySQL syntax (eg. '%keyword%'). See the Codex.

    Cheers,
    Mike

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Tiles
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.