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: 3913
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:
4 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: 2817

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1627

Posts: 8280

Newest Members:

igor.buzaev, jeremyboucher, lthompson2709, MAC, duty3canada, backlinkmorocco

Administrators: CyberSEO: 3913