Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter albeezie

    (@albeezie)

    Thanks. I did try out the mla code as you pointed out to try to utilize the term search filter, and it didn’t seem to work. Maybe I’m just doing something wrong. I’ll try more later and update if need be. Thanks for your help!

    Thread Starter albeezie

    (@albeezie)

    Yeah, I guess it’s just not possible right now. I have a very large collection of photos full of keywords and so I was hoping that users of my website could potentially narrow down searches with multiple keyword matching.

    Thread Starter albeezie

    (@albeezie)

    Are my posts getting deleted? I have posted some code that keeps disappearing.

    The above solution works manually – with adjustment “attachment_tag”

    Search form still doesn’t work on development version. Again this is via a webpage search box with a form.

    Standard search form with:

    [mla_gallery s=”{+template:({+request:search-string+}|a-bad-term)+}” mla_search_fields=”title,terms” posts_per_page=12 mla_output=”paginate_links,prev_next” mla_link_href=”{+page_url+}?search-string={+request:search-string+}”]

    [mla_gallery s=”{+template:({+request:search-string+}|a-bad-term)+}” mla_search_fields=”title,terms” mla_nolink_text=”Enter a search value above.” mla_caption='{+template:({+an invalid field+})+}’ columns=4 posts_per_page=12]

    • This reply was modified 9 years, 4 months ago by albeezie.
    • This reply was modified 9 years, 4 months ago by albeezie.
    • This reply was modified 9 years, 4 months ago by albeezie.
    Thread Starter albeezie

    (@albeezie)

    No need to apologize, you have done a fantastic job with this plugin.

    Since the taxonomy I wanted specifically was a tag, not a category, I used
    [mla_gallery mla_terms_phrases="A,C" mla_terms_taxonomies="attachment_tag"] which did the search well.

    I installed the development version.

    However, as a SEARCH FORM function, it didn’t work.

    Form used:

    <form id="mla-search-form" action="." method="post">
    <input id="mla-search-box" name="search-string" type="text" value="" />&nbsp;<input id="submit" name="submit" type="submit" value="Search Keyword" />
    </form>
    
    <p style="text-align:center">
    [mla_gallery s="{+template:({+request:search-string+}|a-bad-term)+}" mla_search_fields="title,terms" posts_per_page=12 mla_output="paginate_links,prev_next" mla_link_href="{+page_url+}?search-string={+request:search-string+}"]
    </p>
    
    [mla_gallery s="{+template:({+request:search-string+}|a-bad-term)+}" mla_search_fields="title,terms" mla_nolink_text="Enter a search value above." mla_caption='{+template:({+an invalid field+})+}' columns=4 posts_per_page=12]
    Thread Starter albeezie

    (@albeezie)

    Thanks for the reply.

    I’m not searching for multi-word term names. Those work just fine as is. I am trying to narrow a search for an image based on multiple keywords. Keyword A and Keyword C together bringing only the image that has both of those keywords.

    Back to the example in the original post (again this is not in the administrative screen but the search form that is in the documentation section):

    If I search: A C, I get nothing.
    If I search: A AND C, I get nothing.
    If I search: A OR C, I get nothing.

    It seems like it is putting all of those terms together including the “and” and thus not returning anything.

    If this isn’t clear, I will use real keyword terms instead of A, B and C.

    Thread Starter albeezie

    (@albeezie)

    Thank you very much for your detailed answer, it was very helpful.

    On another note, I have not had much success in using search to look for images with multiple keywords.

    Example: Image:Keywords
    Image 1: A, B, C
    Image 2: C, D, E
    Image 3: A, B

    If I search A: I get 1 and 3
    If I search B: I get 1 and 3
    If I search C: I get 1 and 2

    Is there a way to search for keywords A and C and only return Image 1? Keeping in mind that keywords may have 2 or 3 actual words in them. I don’t want to search for A or C as I would get all 3 images returned. I tried using “AND” in the search function which did not work for me.

    If this goes in another post, I will be glad to send it there.

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