Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eddie Moya

    (@eddiemoya)

    How you get the current category depends on several aspects of where your trying to do it. You can use get_the_category() or get_query_var(‘cat’). Theres other ways, depends on your circumstances. In any case getting the current category is a question about WordPress, not this plugin. I would suggest the forums, stackoverflow, or other areas where you can ask your question to a larger audience.

    https://codex.www.ads-software.com/Function_Reference/get_the_category

    Thread Starter deepbevel

    (@deepbevel)

    thanks, and sorry, it’s hard to draw the line sometimes.. Media Cateories appear in the standard wp categoriy widget, but when the links are clicked, no images appear in category.php.

    I understand it’s because no attachments are being called in the output, but when I try to do that, I get all attachments unless I specify a category.

    So, if the plugin can’t get categories like it does posts (without adding conditionals), I don’t want to spend too much time trying, with the mistaken assumption that I only need to understand the wp part to make it happen. Hope that makes sence.

    Anyway I’ll resolve the thread, if there’s anythng else you could share regarding this it’s most appreciated.

    Thread Starter deepbevel

    (@deepbevel)

    media-categories with the attachment images, image titles, parent post titles, and linked author display names. It’s exact;y what I’ve been after. Finally!
    example
    code as used in category.php for twentyten

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘use in category.php’ is closed to new replies.