• Resolved nicegamer7

    (@nicegamer7)


    I know WordPress has feeds for builtin categories.
    For example, example.com/category/news/feed.

    But does it make feeds for attachment categories? And if so, where would I find them?

    Thanks.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter nicegamer7

    (@nicegamer7)

    Actually, I just found it.

    example.com/attachment_category/calendar-pdfs/feed/

    But neither example.com/attachment_category/calendar-pdfs/ nor its feed show PDFs. Is there anything I can do about this?

    Plugin Author David Lingren

    (@dglingren)

    Good to hear from you again, and thanks for your question. You might want to try the example plugin I developed for this earlier topic:

    RSS Feed for Media Library

    It’s been quite a while since I looked at the example, but there’s a Documentation tab on the Settings screen that provides more information. It would be great if you gave it a try and let me know how it works for you.

    I will leave this topic unresolved for now in case you have problems or further questions regarding the example plugin. Thanks for your continued interest n the plugin.

    Thread Starter nicegamer7

    (@nicegamer7)

    Thanks for quick response. I’m glad to see this has been looked at previously.

    Unfortunately, I can’t seem to get it working. I might be using it wrong but I’m not sure. Using the following yields a 404:
    http://l.mladev/mlafeed/?attachment_category="the-category"

    And using the second method yields a feed that says Error: This is not a valid feed template. with a status of 404:
    http://l.mladev/attachment_category/the-category/?feed=mlafeed

    Any help would be appreciated.

    Thanks.

    Thread Starter nicegamer7

    (@nicegamer7)

    Sorry if I caused any confusion. It turns out I had the plugin disabled.

    Thread Starter nicegamer7

    (@nicegamer7)

    Alright, I was able to get what I wanted working. The plugin really is powerful!

    I did notice an issue while trying to get it set up though. It seems that using quotes in the Parameters option causes the option to be cut off when going back to edit the feed again.

    My exact Parameters option is as follows:
    [+template:((attachment_category=[+request:attachment_category+])|(attachment_category=[+query:attachment_category+]))+] posts_per_page=10 post_mime_type=application/pdf orderby=date order=DESC date_query="array('before' => 'first day of this month')"

    After saving it works as expected. But when I went back to edit it, the Parameters option read:
    [+template:((attachment_category=[+request:attachment_category+])|(attachment_category=[+query:attachment_category+]))+] posts_per_page=10 post_mime_type=application/pdf orderby=date order=DESC date_query=

    After some more investigation, it seems anything after the first quote is removed, not only the quote itself.

    Finally, there was a small spelling mistake in the Theme-based Templates section of the documentation. In the second sentence, goves should be gives. However, I wasn’t hindered in any way by any of this. In fact, I’m incredibly grateful for this plugin and the support you provide. This topic can be closed now 🙂

    Thanks.

    Plugin Author David Lingren

    (@dglingren)

    Thank you for taking the time to install and try out the MLA Custom Feed Example plugin. Thanks as well for reporting the “Parameters” parsing defect and catching the typo in the Documentation.

    I have uploaded a new MLA Development Version dated 20200426 that corrects the problems you reported. You can find step-by-step instructions for using the Development Version in this earlier topic:

    PHP Warning on media upload with Polylang

    Once the Development Version is installed you must update and verify the example plugin. Navigate to the Settings/Media library Assistant Documentation tab and click the “Example Plugins” button. Type “RSS” in the text box and click “Search Plugins” to filter the table.

    You are looking for the “MLA Custom Feed Example” plugin. Find that plugin and hover over the title in the left-most column. Click the “Update” rollover action, then go to the WordPress Plugins/Installed Plugins submenu and verify the example plugin as you would any other plugin. Make sure you have the latest version, 1.12, installed.

    It would be great if you can install the Development Version, try the updated example plugin and let me know if you find any other problems. The fixes will, of course, be in the next MLA version, but that’s likely to be a while in coming.

    I am marking this topic resolved, but please update it if you have any other problems or further questions regarding the example plugin. Thanks for helping me improve it.

    Thread Starter nicegamer7

    (@nicegamer7)

    Thanks, it’s working as expected.

    There’s one last thing. I wanted to modify certain tags in the feed. I’m pretty sure this can’t be done as of now, so could you point me in the righ direction? I’m wondering which function or method needs to be modified to achieve this.

    An example would be to change the creator tag to a hardcoded string. Another example would be to add thumbnails in the description tag, or even to add a whole new tag to each item in the feed.

    Thanks.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update confirming the fixes.

    You wrote “I wanted to modify certain tags in the feed.” I suggest you study the “Feed Templates” section of the plugin’s Documentation tab and experiment with creating a custom feed template of your own. You should be able to make the changes you require. If you need more specific guidance, post an update and let me know.

    Thread Starter nicegamer7

    (@nicegamer7)

    Sure. However, I can’t seem to find the “Feed Template” section of the documentation. Is it possible I’ve disabled it somewhere?

    Plugin Author David Lingren

    (@dglingren)

    I regret the confusion. I am referring to the Documentation tab in the MLA Custom Feed Example v1.12 Settings page (not the MLA Documentation). It’s the section where you found and reported a typo in your first post.

    Thread Starter nicegamer7

    (@nicegamer7)

    That makes more sense. Sorry, I completely forgot that the sample plugin came with it’s own documentation.

    I’ll read up on it and let you know how it goes.

    Thanks.

    Thread Starter nicegamer7

    (@nicegamer7)

    I’m all good now, thanks for all your help.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Attachment Category RSS Feeds’ is closed to new replies.