• Resolved svenol

    (@svenol)


    In document there is a info about it

    —-
    Multiple fields
    relation – additional field query, where relation is and (default) or or
    field_2, value_2, compare_2, field_3, value_3, compare_3…
    —-

    but I can;t understand instructions this so maybe someone can help me:))

    I need to create a loop where I can match posts for two fields
    field_name_1 (value_name_1) and field_name_2 (value_name_2)

    https://wordpress.org/plugins/custom-content-shortcode/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter svenol

    (@svenol)

    ok, sort this out. In case if someone gonna have the same problem here is my code:

    [loop type=type_name field=field_name_1 value=’value name 1′ compare=and field_2=field_name_2 value_2=’value name 2′]

    Plugin Author Eliot Akira

    (@miyarakira)

    Thank you for writing the solution. I’ll try to improve the documentation on this point.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘help with multiple fields’ is closed to new replies.