Forum

You must be logged in to post Login Register


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Efficient related posts plugin question-

No Tags
UserPost

7:16 pm
January 5, 2010


kasiem@gmail.com

Austin, Texas

New Member

posts 2

Hello, I registered and tried to post this in the appropriate place, however wouldn't let me. I'd like to know how I can make the plugin only show a certain number of characters for the titles. What would be the best way to accomplish this? thanks!  Laugh

2:25 pm
January 6, 2010


AaronCampbell

Admin

posts 191

Currently there's no good way to do this.  However, you can look at line 397 of efficient-related-posts.php and change it to shorten the title.

Upset at my slow responses recently? Please read my explanation.

5:11 pm
January 6, 2010


kasiem@gmail.com

Austin, Texas

New Member

posts 2

I'm looking at the code in dreamweaver cs4, and line 397 is blank on my end. However on 392 is this code –>

$related_post->permalink = get_permalink($related_post->ID);

Is this the line of code to change? Also, if I only wanted to limit the title to say 37 characters how do I code it? Thank you so much for this plugin, as it is just what I'm looking for- espec if I can get this titles to cooperate!

Kasie

6:08 pm
January 6, 2010


AaronCampbell

Admin

posts 191

Sorry, that should have been 297:

$link = "<a href='{$p['permalink']}' title='" . attribute_escape(wptexturize($p['post_title']))."'>".wptexturize($p['post_title']).'</a>';

Upset at my slow responses recently? Please read my explanation.

No Tags

About the Xavisys Forum

Forum Timezone: America/Phoenix

Most Users Ever Online: 41

Currently Online:
10 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 3
Forums: 26
Topics: 270
Posts: 688

Membership:

There are 454 Members
There has been 1 Guest

There are 2 Admins
There is 1 Moderator

Top Posters:

Aaron Fineman – 8
Brayne – 8
Iain – 8
greg@gregdowning.com – 6
lisa0721@gmail.com – 6
checox7@yahoo.com – 6

Recent New Members: mail@lpmdesign.de, kermit.woodall@gmail.com, bert, myrddin@web.de, nsconnolly@btinternet.com, cris@asteriskr.com

Administrators: AaronCampbell (191 Posts), Imported Questions (1 Post)

Moderators: nancy@mequoda.com (0 Posts)