May 4, 2011

Excerpts Same As Posts - How Do I Limit/Change Excerpt Size? | 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
Excerpts Same As Posts - How Do I Limit/Change Excerpt Size?
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
November 21, 2011
5:11 am
Avatar
cyber1
Guest
Guests

Hello Admin,

Since I've started using CyberSEO i noticed my post 'excerpts' are now the matching the same exact as the post content. Is this the default behavior..?

My question is: how do I limit (or eliminate) size of excerpts to lets say "50 words" or better just show them as 'blank'?

thanks,
cyber1

November 21, 2011
3:54 pm
Avatar
CyberSEO
Admin
Forum Posts: 3949
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

You can do it using the following code:

Login to see the code

November 22, 2011
5:49 am
Avatar
cyber1
Guest
Guests

Hello Admin,

 

Thanks for the code snippet!! i will give this a try!

 

My question is, why is CyberSEO changing the default behavior of WordPress excerpts? Can't there be an option in the settings to either 'enable' or 'disable' this so we don't have to add additional code as a work around for this?

 

regards,

cyber1

November 22, 2011
1:00 pm
Avatar
CyberSEO
Admin
Forum Posts: 3949
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

There is no "default" when we are talking about the content imported from the feeds. If the feed has its own excerpts, these will be syndicated "as is" if it doesn't they will be generated from the post content. In case if there is no <content> tags at all, the post content will be generated from the excerpts etc… There are too many "IFs" actually. Different feeds - different behavior.

November 24, 2011
3:06 am
Avatar
cyber1
Guest
Guests

Hi Admin,

I don't understand the behavior of the CyberSEO code. It seems like there's always an 'excerpt' regardless. I've had to add the "$post['post_excerpt'] = '';" into every setting to null out the excerpt, this isn't the default behavior of WordPress as far as i know..(?)

Are you saying the CyberSEO code does nothing to the excerpt, this is always coming from the RSS Feed?

Sincerely,
-cyber1

November 24, 2011
1:50 pm
Avatar
CyberSEO
Admin
Forum Posts: 3949
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

If there is no excerpt in the feed (the <description> tag is absent or empty), it will be created by WordPress automatically.

November 26, 2011
9:02 pm
Avatar
cyber1
Guest
Guests

Hello Admin,

The 'Manual' Wordpress Excerpts are not added automatically, wordPress uses the 1st 55 for this if an excerpt is asked for. Best I can see CyberSEO is doing this..

Login to see this link

The issue still remains.. why should we have to add CODE to something that is changing the default behavior of WordPress?

Am I NOT understanding something here?

 

Sincerely,

cyber1

November 27, 2011
1:16 pm
Avatar
CyberSEO
Admin
Forum Posts: 3949
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Yes you don't understand something. The posts are being inserted via standard wp_insert_post function. The WordPress generates the excerpts automatically in case if they are empty (see the_excerpt and the_excerpt_rss functions).

November 29, 2011
7:58 am
Avatar
cyber1
Guest
Guests

Hello Admin,

Where is it documented in WordPress that "Full Posts" are added as 'manual' excerpts if they're blank? This seems like a behavior of CyberSEO to me. (The reason I'm saying this is because I've tried almost every AutoBlog product and never, ever had anything remotely like this occur) I'm having to 'null out' the 'manual 'excerpts and these shouldn't exist in the 1st place. My guess is that CyberSEO is adding in the manual excerpt for us if it's blank, but it's doing this to us even if we don't want a manual excerpt in the 1st place (as in my case and I would guess others). In regards to 'Automatic' excerpts, these are handled by WordPress automatically.. even if the manual excerpt are blank (which it should be).

Concerning (automatic) excerpts, the only thing WordPress does is create the "1st 55 words" as an "automatic excerpt" if the post specifies the (the_excerpt) vs. the_content. Honestly, I'm not trying to be argumentative here but I don't think you have the facts straight regarding how excerpts are supposed to work in WordPress.

Finally, I defer to the Source;  WORDPRESS Login to see this link

"When a post has no manual excerpt and the post template uses the the_excerpt() template tag, WordPress generates an excerpt automatically by selecting the first 55 words of the post..".

they even go on to say…

"The manual WordPress excerpt is often confused with the automatic excerpt or with the teaser (the part of a post that appears on the front page when you use the More tag). While both are related to the manual excerpt, they are different from it. "

Manual Excerpts are just that.. MANUAL. NOTHING should be there unless we specifically put it there, CyberSEO should not be creating Manual Excerpts unless we specifically ask for it.

 

Sincerely,

Cyber1

November 29, 2011
12:37 pm
Avatar
CyberSEO
Admin
Forum Posts: 3949
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
10sp_Permalink sp_Print
0

The CyberSEO does not add any excerpts by itself. So if you null out the excerpt using the code below, the post will be generated with empty excerpt (you can see it if you open the post in the WP editor and take a look at the "Excerpt" box which is located just below the main editor window).

Login to see the code

However (!) if your WordPress theme uses the_excerpt, it (the function) will generate the excerpt automatically.

BTW, can you show me an example of the post with the excerpt which, as you think, was generated automatically? Also I need to take a look at the the RSS Feed which was used as a source.

November 30, 2011
8:03 am
Avatar
cyber1
Guest
Guests
11sp_Permalink sp_Print
0

Hello Admin,

Actually I override the automatic excerpt with another plug-in that does a better job, but this has no bearing on the issue here;having manual excerpts created. i'd be glad to provide full access to the site im testing with, but here's an example of an RSS feed generating a full manual excerpt examples (make sure you have the excerpt set 'to show" in the admin panel, in order to view the excerpt):

Login to see this link

and

Login to see this link

Hope this helps, thanks always, very appreciated!

 

Sincerely,

cyber1

November 30, 2011
3:52 pm
Avatar
CyberSEO
Admin
Forum Posts: 3949
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
12sp_Permalink sp_Print
0

Ok, let's take a look at the first feed. It (the feed) has no <content> tag at all (make sure to check the feed's source). In other words all the content there is stored within the <description> tags (yes, there are excerpts only even if they contain the full articles). So when the CyberSEO plugin syndicates such a feed and doesn't find the <content> field, it just copies the description into the post's content. So both post content and post excerpt have the same text. This is obvious, isn't it?

However, in case if you want to override the standard behavior, you can always do it via PHP code, e.g.:

Login to see the code

The simple code above will put the full articles from the post excerpts (the <description> blocks in the original feed) into the post's bodies (content) and will leave the excerpt blank. Just open the syndicated post in the text editor to see what I mean.

Sorry, but it looks like you don't read my posts above. English is not my mother language but is it really that bad? )

December 2, 2011
2:36 am
Avatar
cyber1
Guest
Guests
13sp_Permalink sp_Print
0

Hello Admin,

I believe you are correct here, and I'm rechecking everything per your notes above thanks any my apologies for being confused.. :(

 

sincerely,

cyber1

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
45 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: 8356

Newest Members:

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

Administrators: CyberSEO: 3949