Navigation überspringen

[Gelöst] Rss Feed access Control

This support ticket is created vor 5 Jahren, 8 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Dieses Thema enthält 4 Antworten, hat 3 Stimmen.

Zuletzt aktualisiert von larryL vor 5 Jahren, 8 Monaten.

Assistiert von: Waqar.

Author
Artikel
#1229771

I'm not having any issues using Access to control access to posts/pages based upon the user's assigned role/group. But this is not working for RSS feeds. How can I apply the same controls to /feed/* ???

Thanks!

Larry

#1229846

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

Hi Larry

Let me see if I understand the question.

WordPress publishes public RSS feeds, anyone with a feed reader can see them. It doesn't provide any mechanism for making feeds private, AFAIK.

You want private feeds restricted by user role, is that the question?

I did some googling, expecting to possibly find ready-made solutions via plugins for private feeds, but came up with little.

I found this article describing authenticating subscribers, which could be adapted to check the role of the user, but this is very much custom work and there is not much more help I can give on this one I'm afraid.

versteckter Link

You could contact the contractors (https://toolset.com/contractors/), although this is vanilla WP work not specific to Toolset, so you could try any WordPress devs.

#1230204

I don't think that's what I want but maybe I'm confused about what is and isn't possible?

What I really want is to be able to filter what is available in the feeds like I can in a view. So if I have a view (Documents for Sales Agents) and they can't see any documents for Managers, then the only documents in their feed would be Sales Agent related.

So I think what I'm looking to do is isolate the RSS feeds down to specific (already created) views, not deactivate RSS access as a whole.

#1231462

Hi Larry,

Thanks for writing back.

Adding to what Nigel shared earlier, WordPress offers a feed interface in addition to the regular front-end of the website.
( https://wordpress.org/support/article/wordpress-feeds/ )

Currently, Toolset plugins don't offer built-in support to customize what is shown in the feeds, but you're welcome to submit this as a feature request:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

To customize the output of your feeds, you'll first need custom code and template for your feeds and following are some useful guides on the topic:

https://codex.wordpress.org/Customizing_Feeds
versteckter Link
versteckter Link
versteckter Link

Once your feeds are being controlled through your custom feed template, you can incorporate a Toolset View inside it, using the "render_view" function:
https://toolset.com/documentation/programmer-reference/views-api/#render_view

I hope this clarifies and for personalized assistance around custom code, you can consider hiring a professional from our list of recommended contractors (as Nigel mentioned):
https://toolset.com/contractors/

regards,
Waqar.

#1231746

My issue is resolved now. Thank you!