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: 3676
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:
10 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: 2634

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1535

Posts: 7754

Newest Members:

florian.stickel, t.schleiser, worldnetsites, janodamek, socialbiz4themasses, suren.manvelyan.sv

Administrators: CyberSEO: 3676