• Resolved AdryPi

    (@adrypi95)


    What’s the code to filter the results according a keyword contended from a previews module search? (I work with Divi Builder).

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    I’m not sure I understand exactly what you’re asking, but a Loop’s results can be filtered by keyword using the search attribute. If you’re working with the native WordPress search, you can get the terms from the query parameter like so:

    <Loop search="{Url query=s}" orderby=relevance order=desc>...</Loop>

    However, I would also try a loop without any attributes, which should inherit the default search query, and should suit your needs provided you don’t need any other filtering or ordering:

    <Loop></Loop>

    Does this help? If not, could you send your L&L markup to help me understand where you’re having trouble?

    Thanks,
    Julia @ Team Tangible

    Plugin Author Tangible

    (@tangibleinc)

    Marking this as resolved since it was addressed in a separate post made by the user on L&L’s official support forum.

    @adrypi95 don’t hesitate to reach out or create a new support thread if you have any other questions about the plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to create Results Loop by filter searched keyword’ is closed to new replies.