May 4, 2011

how to merge categories from different feeds? | 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 merge categories from different feeds?
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
February 6, 2015
10:03 am
Avatar
darkinferno
Guest
Guests

Helllo

I have 2 rss feeds which have different categories name, example

Feeds Site A | Category name: Spicy Food

Feeds Site B | Category name: Sweet Food

 

I want to combine those categories into All Food. I tried some php code, but no luck

if ($post[‘categories’] == “Spicy Food”) {
       $post [‘categories’] = “All Food”;
}

Can you help me? Thank you

February 7, 2015
1:21 am
Avatar
CyberSEO
Admin
Forum Posts: 3676
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

$post[‘categories’] is an array. E.g.:

Login to see the code

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 84

s.baryshev.aoasp: 64

Freedom: 61

MediFormatica: 49

B8europe: 47

saviulisse67: 45

Member Stats:

Guest Posters: 338

Members: 2636

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1535

Posts: 7754

Newest Members:

kevin.crywolf, kevin.cooper.boonenewsmedia, florian.stickel, t.schleiser, worldnetsites, janodamek

Administrators: CyberSEO: 3676