May 4, 2011

Example of using the $post = false variable | 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_Related Related Topics sp_TopicIcon
Example of using the $post = false variable
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
October 29, 2011
1:17 pm
Avatar
tonyparra
Guest
Guests

Hello,

If i understand correctly the $post = false variable can be used when i don't want to aggregate some particular post, so that means in a feed if I see a post or know of particular content i want to filter out I would use this variable, correct?

Ok, getscorecash have some good feeds but there is a niche, or content I would not like to syndicate because it doesn't fit my blogs niche. Can you show an example of how to remove any post that are tagged "ebony" or has a particular performers name? Would be greatly appreciated.

October 29, 2011
2:16 pm
Avatar
CyberSEO
Admin
Forum Posts: 3947
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Yes, you understand it correctly, $post = false; tells the syndicator to skip that post and don't syndicate it. So if you don't want to syndicate those posts that have some word or phrase say ("bad word") in their title, content and excerpt section, you can do it like this:

Login to see the code

October 29, 2011
7:56 pm
Avatar
tonyparra
Guest
Guests

Hmm  when i tried that snipped i got this erro?

"Parse error: syntax error, unexpected '=' in /web/sites/bl4xxx/fatwhitebutt.com/wp-content/plugins/CyberSEO/cyberseo-core.php(0) : runtime-created function on line 8"

October 29, 2011
8:10 pm
Avatar
tonyparra
Guest
Guests

sorry for all bolds btw just noticed it Embarassed

October 29, 2011
10:51 pm
Avatar
CyberSEO
Admin
Forum Posts: 3947
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Sorry for a typo ('$' was missing). Fixed.

November 1, 2011
1:24 am
Avatar
tonyparra
Guest
Guests

Ah i see no problem i should have paid better attention also thanks

August 23, 2012
4:54 am
Avatar
Downloadz Portal
Guest
Guests

If there were more words I'd like to filter, what seperator would I use? | or ,?

For clearance, it would be an OR-array in the sence of: filter posts with keywords: word1 OR word2 OR word3 OR word4 OR etc. etc.

August 23, 2012
5:07 am
Avatar
CyberSEO
Admin
Forum Posts: 3947
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

There is no separator for the stripos() function. You should use the preg_match() one instead. Here is the code: Login to see this link

August 23, 2012
5:15 am
Avatar
Downloadz Portal
Guest
Guests

It says there DON'T syndicate posts that contain keyword word1, word2 AND word3. I want a code that doesn't syndicate posts containing word1, word2 OR word3...

August 23, 2012
5:16 am
Avatar
CyberSEO
Admin
Forum Posts: 3947
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
10sp_Permalink sp_Print
0

Please check that post carefully. There are two different code snippets. In both cases the criteria is "OR".

P.S. I've just fixed the comments there.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
207 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: 2855

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1641

Posts: 8353

Newest Members:

samuel2288, comercios.cercademi, wanmarkets, torontomark48, info.ckmedianetwork, contact.mybeautystar

Administrators: CyberSEO: 3947