May 4, 2011

cyberseo php script help: if custom field or xml tag is 'this' add to 'this' category? | CyberSEO Pro | Support Forums

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
cyberseo php script help: if custom field or xml tag is 'this' add to 'this' category?
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
December 19, 2021
6:28 am
Avatar
New Member
Members
Forum Posts: 1
Member Since:
December 17, 2021
sp_userofflinesmall Offline

hi, i’m trying to see if someone could help me or point me in the right direction to add a php script variable for posts retrieved from cyberseo pro plugin. im working on a group site for a non-profit to combine rss feeds from multiple shelters into one page. their feeds are each bulk with all animals included without a way to filter them into categories in wordpress. is there a way to add rule in the PHP code field where if a certain value is in a custom field or xml tag it will insert the post into a certain category in wordress? so if ‘AnimalType’ = Dog the imported post will insert into ‘Dog’ category? i can run taxonomy queries to get posts with that custom field value but trying to find a way to have these inserted into categories for compatibility for other plugin. the feeds contain dogs, cats, bunnies, etc and there isnt a way to filter the rss url to just retrieve dogs or cats from the url structure. any help would be greatly appreciated, thanks!

December 19, 2021
12:06 pm
Avatar
Admin
Forum Posts: 3102
Member Since:
July 2, 2009
sp_userofflinesmall Offline

Sure. Just add the following lines into your Advanced->PHP box:

Login to see the code.

Login to see the code.

Login to see the code.

Forum Timezone: Europe/Moscow

Most Users Ever Online: 105

Currently Online:
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 81

Freedom: 61

B8europe: 54

saviulisse67: 45

adultdenim: 44

allgoodies: 38

Member Stats:

Guest Posters: 350

Members: 1928

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1331

Posts: 6637

Administrators: CyberSEO: 3102