May 4, 2011

How to pull the Post Category from the Feed | CyberSEO Pro | Support Forum

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
How to pull the Post Category from the Feed
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
March 4, 2022
2:16 am
Avatar
tshutt
Member
Members
Forum Posts: 23
Member Since:
January 7, 2022
sp_UserOfflineSmall Offline

Here's the feed I'm working with... Login to see this link

I need the categories of the articles to be pulled from the feed. I see that I can set the categories manually in the plugin, and I also have the setting "Create new categories defined in syndicating post" (screenshot of the settings: Screen-Shot-2022-03-03-at-4.06.46-PM.pngbut the articles only post to the category I have manually selected instead of getting it from the feed. When I have no category selected, they post to Uncategorized. Any help would be much appreciated!

March 4, 2022
10:25 am
Avatar
CyberSEO
Admin
Forum Posts: 3947
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
According to the Login to see this link, the <category> element specifies one or more categories the channel or item belongs to. The <category> element can also specify the hierarchic location in a category (the value of the <category> element is then a forward-slash separated string).
 
E.g.:

Login to see the code

But in your feed the categories are specified in some strange manner:
Login to see the code
These attributes can no be generated automatically, because they are defined in some non-standard way, which doesn't follow the RSS standards. Thus the only way to get the categories is to use a custom PHP code snippet, which will parse the <category> attributes for a desired name, such as "team", "league", "sport" etc.
Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 84

s.baryshev.aoasp: 68

Freedom: 61

Pandermos: 54

MediFormatica: 49

B8europe: 48

Member Stats:

Guest Posters: 337

Members: 2853

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1640

Posts: 8352

Newest Members:

wanmarkets, torontomark48, info.ckmedianetwork, contact.mybeautystar, samuelbodde, john.prush

Administrators: CyberSEO: 3947