May 4, 2011

Excerpts in Posts | 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
Excerpts in Posts
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
April 7, 2012
12:04 am
Avatar
bk
Guest
Guests

I am trying to accomplish the following:

1. Import an article from an RSS feed.

2. Display the article as an excerpt only (3 sentences or 50 words).

3. "Read more:" link back to the original article.

4. I would prefer that only articles imported using CyberSEO be affected by these changes.

April 7, 2012
12:10 pm
Avatar
CyberSEO
Admin
Forum Posts: 3947
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

The following code should do the trick:

Login to see the code

April 22, 2012
6:37 am
Avatar
Astheria
Guest
Guests

I'm sorry I'm looking to do the same thing.  Where would I place this code at exactly?  We are looking to syndicate a number of blogs into a site and want it to give an excerpt with a link back to the original article just as above.  I just for the life of me cant figure out where the coding would go.

April 22, 2012
10:57 am
Avatar
CyberSEO
Admin
Forum Posts: 3947
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

It should be placed into the "PHP code <?php .. ?>" box in the feed settings. Here is more info about it: Login to see this link.

April 22, 2012
7:15 pm
Avatar
Astheria
Guest
Guests

Can this not be done in the "free" version at all?  I can't seem to find a php box in the post settings in this version.  I guess I will have to continue to look for other products if not.

April 22, 2012
9:49 pm
Avatar
CyberSEO
Admin
Forum Posts: 3947
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

It can't be done with CyberSyn. I'd suggest you to look at CyberSEO or other plugins that do allow the custom PHP code execution.

June 29, 2013
2:37 pm
Avatar
stonecold111
Guest
Guests

The code provided by Cyberseo works but it only applies to the content. It doesn't limit the sentences in post excerpts on the frontpage.

I can limit the excerpts with the following code, but it doesn't apply to the content. Would you please tell me how to limit sentences in both excerpt and the content?

Login to see the code

June 29, 2013
3:01 pm
Avatar
CyberSEO
Admin
Forum Posts: 3947
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

If you want the post excerpt and content of the same length, you can use this code:

Login to see the code

June 29, 2013
3:08 pm
Avatar
stonecold111
Guest
Guests

Thank you again.

Just curious, can I make the content limit to 30 words and excerpt 25 words?

I just realized that that would be a better idea in case the picture is the 26th word, you can still generate a feature picture because it's included in the content while avoiding double pictures in the excerpt

June 29, 2013
3:14 pm
Avatar
CyberSEO
Admin
Forum Posts: 3947
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
10sp_Permalink sp_Print
0

Somehow like this:

Login to see the code

December 9, 2020
6:12 am
Avatar
StoryBehindTheCloth
New Member
Members
Forum Posts: 1
Member Since:
December 9, 2020
sp_UserOfflineSmall Offline
11sp_Permalink sp_Print
0

Do these codes still work? I don't know if i'm doing something wrong or if they are no longer usable.

December 10, 2020
1:36 pm
Avatar
CyberSEO
Admin
Forum Posts: 3947
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
12sp_Permalink sp_Print
0

Of course they work. Nothing has changed. Please just make sure you copied them correctly. Click on "view raw code" and copy.

January 7, 2021
5:03 am
Avatar
Mickeyson05
Member
Members
Forum Posts: 10
Member Since:
January 5, 2021
sp_UserOfflineSmall Offline
13sp_Permalink sp_Print
0

When I add code as instructed on post it completed messes up import

#update

I guess it was the coding or pictures not sure but I went from 50 to 450 for it to appear correctly

Still doing some testing but that was my initial issue

January 7, 2021
10:30 am
Avatar
CyberSEO
Admin
Forum Posts: 3947
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline
14sp_Permalink sp_Print
0

That's because you are trying to shorten the HTML code. There will be a special function for that in the next release.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
18 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: 1640

Posts: 8352

Newest Members:

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

Administrators: CyberSEO: 3947