May 4, 2011

using Post Modification tools - adding prefix/sufix to Titles and adding some text at the beginning of 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_Related Related Topics sp_TopicIcon
using Post Modification tools - adding prefix/sufix to Titles and adding some text at the beginning of posts
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
November 12, 2017
6:31 am
Avatar
j3sus83
Member
Members
Forum Posts: 9
Member Since:
March 24, 2017
sp_UserOfflineSmall Offline

Hello, I would like to modify a little parsed content, using cyberseo's modification tools.

Questions:

1. I would like to add some prefix (or suffix) to all post titles. How to do that ? Does this code that admin posted long ago work for this task ?:

$prefix = array("word1", "word2", "word3");
$post['post_title'] = $prefix[rand(0, count($prefix) - 1)] . ' ' . $post['post_title'];

What if I want to modify (add sufix/ prefix) post titles ONLY to posts that belong to some category ?

2. I would like to add some text at the beginning of each post (better yet - at the beginning of each post ONLY from X category). What code should I use in cyberseo's post modification tools to do that ?

Thanks !sf-wallsf-wallsf-thumbup

November 13, 2017
7:52 am
Avatar
CyberSEO
Admin
Forum Posts: 3913
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

1. The easiest way to do it is to alter the "Post title" template. By default there is "%post_title%" and you can add there any prefix or postfix like:

Article: %post_title%

or

%post_title% only in America!

or something like that :)

2. The same as with "Post title" template, but now with "Post content" one. Please read more about it here: Login to see this link

November 13, 2017
10:54 am
Avatar
j3sus83
Member
Members
Forum Posts: 9
Member Since:
March 24, 2017
sp_UserOfflineSmall Offline

admin said
1. The easiest way to do it is to alter the "Post title" template. By default there is "%post_title%" and you can add there any prefix or postfix like:

Article: %post_title%

or

%post_title% only in America!

or something like that :)

2. The same as with "Post title" template, but now with "Post content" one. Please read more about it here: Login to see this link

 

yeah, but i already syndicated feeds and parsed posts...Now I need to change titles and contents of EXISTING POSTS....

November 14, 2017
8:20 am
Avatar
CyberSEO
Admin
Forum Posts: 3913
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Ok, I see. Got to CyberSEO->Modification Tools and execute the code like this:

Login to see the code

or this:

Login to see the code

November 14, 2017
8:50 am
Avatar
j3sus83
Member
Members
Forum Posts: 9
Member Since:
March 24, 2017
sp_UserOfflineSmall Offline

admin said
Ok, I see. Got to CyberSEO->Modification Tools and execute the code like this:

Login to see the code

$post->post_title = "my prefix " . $post->post_title;

Login to see the code

or this:

Login to see the code

$post->post_title = $post->post_title . " my suffix";

Login to see the code

  

Thanks, will try it today...And any idea how to add some text ON TOP of each post ? (modifying post_content, not post_title)

November 14, 2017
9:24 am
Avatar
CyberSEO
Admin
Forum Posts: 3913
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Like this:

Login to see the code

November 14, 2017
10:01 am
Avatar
j3sus83
Member
Members
Forum Posts: 9
Member Since:
March 24, 2017
sp_UserOfflineSmall Offline

Thank you :)sf-ninjasf-thumbup

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

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