May 4, 2011

Unset Category | 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
Unset Category
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
July 28, 2016
9:00 am
Avatar
Freedom
Member
Members
Forum Posts: 61
Member Since:
May 11, 2012
sp_UserOfflineSmall Offline

$categories_to_exclude = array ('Category1', 'Category2' );
$post ['categories'] = array_udiff ( $post ['categories'], $categories_to_exclude, 'strcasecmp' );

Is it possible to modify this so that Category1 and Category2 are always unset?

Thank-you.

August 17, 2016
8:39 am
Avatar
CyberSEO
Admin
Forum Posts: 3913
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

You can use the standard unset function. E.g.:

Login to see the code

The code above will remove category #1 and #2.

P.S. I have edited your post. There is no need to foul this site with adult keywords.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
15 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