• Resolved Robin Hislop

    (@tramuntana)


    Hi David

    I am using the following shortcode to display a list of recently uploaded documents, but excluding those in a particular category (ID 53):

    [mla_gallery columns=1 post_mime_type="application/*" tax_query="array(array('taxonomy' => 'attachment_category','field' => 'term_id','terms' => array('53'),'operator' => 'NOT IN'),)" post_parent=all posts_per_page=10 orderby="modified DESC, title ASC" link="file" mla_markup="ul"]

    I am getting a strange result: the exclusion of the category only works for logged in users, logged out users can see links to documents in category 53.

    Do you have any ideas what might be causing this?

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

    (@dglingren)

    Thanks for your question and for including the complete source text of your shortcode; very helpful.

    I have done some testing on my own system and the results I get are identical for logged-in and not logged-in users.

    It would be helpful if you could modify your shortcode and run an experiment. Add mla_debug=log to the shortcode and then run the shortcode logged-in and not logged-in. After that, remove the mla_debug parameter.

    You can find the error log in the Settings/Media Library Assistant Debug tab (added in the latest version). You might want to go to the tab and “reset” the log first in case it contains old messages.

    If you give me your contact information and I will send you an email address you can use to send the log file(s) to me. You can use the Contact Us page at our web site:

    Fair Trade Judaica/Contact Us

    I look forward to seeing the logs or hearing from you. Thanks for your help and your interest in the plugin.

    Plugin Author David Lingren

    (@dglingren)

    It has been over a month since my last post in this topic. I assume you have found a solution for the issue you reported.

    I am marking this topic resolved, but please update it if you have any further information to share.

    looking for the same answer but mine is simply exclude one:
    [mla_gallery post_parent=all post_mime_type=all size=icon mla_caption=”{+title+}”]

    Plugin Author David Lingren

    (@dglingren)

    @jeffbarclay

    I will respond to the new topic you started:

    Include all categories except one

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

The topic ‘Excluding an attachment category from a query’ is closed to new replies.