Sorry, the forums are locked while I handle some maintenance.

 
This Forum is Currently Locked – Access is Read Only
You must be logged in to post Login


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
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 242

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 242

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: 50

Currently Online:
1 Guest

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 3
Forums: 26
Topics: 410
Posts: 1034

Membership:

There are 792 Members
There has been 1 Guest

There are 2 Admins
There is 1 Moderator

Top Posters:

lkmweb@me.com – 9
Brayne – 8
Xarzu – 8
Iain – 8
Aaron Fineman – 8
checox7@yahoo.com – 6

Recent New Members: puckles@gmail.com, kwelx@kwelx.com, kaufmanauthor@gmail.com, meesfrenkelfrank@hotmail.com, heather@holmpage.com, mark@avantgarde-group.nl

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

Moderators: nancy@mequoda.com (0 Posts)



 
Stop Censorship