Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Blogging Forum


You are currently viewing our Blogging Forum as a guest. Please register to participate.
Login



Reply
Word Press setting question
Old 03-13-2007, 08:03 PM Word Press setting question
SunShyne's Avatar
Eternal Newbie

Posts: 72
Trades: 0
my eyes are blurry from too many hours on the pc so I need help!

Where is the setting in wordpress where I can limit the post count so the article adds the "Read More" link. I have some long articles that id like to shorten so I can add more content to my index. Currently my 3 articles take up too much space hehe
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
SunShyne is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-14-2007, 12:41 AM
Junior Talker

Posts: 1
Trades: 0
Sun,

Don't blame your eyes. WordPress menu items can be hard to find. In:
yourblog/wp-admin/options-reading.php

(in case it's not obvious, substitute the URL for the blog you are working on in place of yourblog)
You'll see the section I think you are looking for.

In older versions and for control about where the items are broken up you can also insert the <--!More--> tag directly from the post editing window.

Best regards
__________________
Dave

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
davestarr is offline
Reply With Quote
View Public Profile Visit davestarr's homepage!
 
Old 03-14-2007, 04:20 AM
Ultra Talker

Posts: 406
Trades: 4
What I did was create a new function for the "Archive" pages, which only displays a blerb.

add this function to /wp-includes/post-template.php

Code:
function the_archive_content($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
	global $id;

	$content = get_the_content($more_link_text, $stripteaser, $more_file);
	$content = apply_filters('the_content', $content);
	$content = str_replace(']]>', ']]&gt;', $content);

	$length = 500;  // change this to roughly the amount of chars you want to display


	$content = substr($content,0,$length);
	$lastperiod = strripos($content, '.');
	$content = substr($content,0, $lastperiod+1);
	
	$content = $content . "</p><br /><a href=\"". get_permalink() . "\" class=\"more-link\">Read Full Article</a>";
	echo $content;
}
and in the archive template, replace the_content() function call with this to call the new function name:

Code:
<div class="entry">
					<?php the_archive_content(__('Read the rest of this entry &raquo;','wp_multiflex')); ?>					
					</div>

This will display 500 chars, minus the amout it takes to get to the last period before it, so that it will display complete sentences.

The only issue with this is if you don't use many periods in your posts (ie, coding posts may not have a single period in them
briansol is offline
Reply With Quote
View Public Profile Visit briansol's homepage!
 
Old 03-14-2007, 12:31 PM
handsome rob's Avatar
King Spam Talker

Posts: 1,028
Trades: 0
Am I the only one who was thinking <!--more--> ?
__________________
The world's going to hell in a handbasket, but I'm selling the wicker.


Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE
Blog


Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE
handsome rob is offline
Reply With Quote
View Public Profile Visit handsome rob's homepage!
 
Old 03-14-2007, 12:48 PM
$100 - $999 Monthly

Posts: 34
Trades: 0
I was too, I think that is what he wants it the more tag.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
thedarksyde is offline
Reply With Quote
View Public Profile Visit thedarksyde's homepage!
 
Old 03-15-2007, 05:44 PM
SunShyne's Avatar
Eternal Newbie

Posts: 72
Trades: 0
thanks for the info gents, it was hidden in the CODE editors menu
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
SunShyne is offline
Reply With Quote
View Public Profile
 
Old 03-15-2007, 10:02 PM
Moelman's Avatar
Moel-sama

Latest Blog Post:
PC Games to Keep an Eye On
Posts: 1,283
Trades: 0
Quote:
Originally Posted by handsome rob View Post
Am I the only one who was thinking <!--more--> ?
I think this is the easiest way to do it.
__________________

Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
Moelman is offline
Reply With Quote
View Public Profile Visit Moelman's homepage!
 
Reply     « Reply to Word Press setting question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24505 seconds with 12 queries