• Resolved netinsites

    (@netinsites)


    Hi
    We’ve followed your MLA List example exactly, yet we’re not getting any output at all. Code as below.
    WP 5.8.1, PHP 7.4, Theme: Highlight PRO

    —-

    <form id="mla-text-form" action="." method="post" class="row">
    <strong>Att. Categories</strong>
    [mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value="{+slug+}" show_count=true pad_counts=false] 
    <input id="text-form-submit" name="text_form_submit" type="submit" value="Search" />
    </form>
    
    <h3>Gallery</h3>
    [mla_gallery]
    attachment_category="{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}"
    posts_per_page=3 mla_output="paginate_links,prev_next"
    mla_link_href='{+new_url+}?mla_paginate_current={+new_page+}&tax_input[attachment_category]={+query:attachment_category,url+}'
    [/mla_gallery]
    
    [mla_gallery attachment_category="{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}" posts_per_page=3 mla_caption="{+title+} : {+description+}" mla_nolink_text="<br>Select a term to display the gallery.<br>"]

    —-

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your report and especially for including the full text of your form and shortcodes; very helpful.

    I entered the form and shortcodes you provided into my test system and they are working fine. When I select a term from the dropdown and click “Search”, the gallery is displayed with the appropriate items. You do not say which MLA version you are using; I am using v2.97.

    I did note that your term list is not filtered by MIME type. The [mla_gallery] shortcode adds a post_mime_type=image filter by default. You can try adding this to your [mla_term_list] shortcode to get accurate counts or you could add post_mime_type=all to both ‘[mla_gallery]’ shortcodes to display all MIME types, e.g., PDF documents. It does not look like that’s very likely for your application, however.

    I do see some additional HTTP headers in requests from your site:

    sec-ch-ua: "Chromium";v="94", "Microsoft Edge";v="94", ";Not A Brand";v="99"
    sec-ch-ua-mobile: ?0
    sec-ch-ua-platform: "Windows"
    Sec-Fetch-Dest: document
    Sec-Fetch-Mode: navigate
    Sec-Fetch-Site: same-origin
    Sec-Fetch-User: ?1
    

    It is possible, but unlikely, that some security feature is interfering with the request.

    If you have access to your site error log you can try adding mla_debug=log to the second [mla_gallery] shortcode to see if the request is received properly and the database query looks right. You can use the Settings/Media Library Assistant Debug tab to view and download the log content. You can also try mla_debug=true to write the information to the screen (but it is ugly). If you can get the debug data, post it here and I can analyze it.

    Thanks for your understanding and any additional information you can provide. I will leave this topic unresolved until I see your response.

    Thread Starter netinsites

    (@netinsites)

    Hi David
    Thanks so much for your very comprehensive reply. It was actually the first thing you mentioned, I added post_mime_type=all to both shortcodes and it now works fine.
    Kind regards

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the good news regarding your success. I am marking this topic resolved, but please update it or start another if you have problems or further questions regarding the MLA shortcodes. Thanks for your interest in the plugin.

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

The topic ‘No output’ is closed to new replies.