Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > Content Mangement Systems – CMS > WordPress - The Ultimate Blog

Notices

WordPress - The Ultimate Blog WordPress is a personal blog publishing tool with focus on aesthetics and featuring cross-blog tool, password protected posts, importing, typographical niceties, multiple authors, bookmarklets. This is a very cooool tool!

Reply
 
Thread Tools
  #1  
Old 10-17-2009, 12:31 AM
robobobo's Avatar
Captain
 
Join Date: Apr 2006
Posts: 229
Default Posting

Hi Guys,

I have just made a few posts on my new site
www.techinfo-4u.com

You may see the most recent one I have is a longer one than the others and instead of just showing the first couple of lines, and then you requiring to click on the heading to view the rest of it,

It actually just shows the whole post and pushes the rest way down the bottom,

It used to be like this sites www.windows7news.com

My old wordpress blog didn't to what my new one is doing, there must be a entry that i can change the set the max number on lines that are displayed on the homepage per post, but i just cant figure out which one,

Any one any ideas?

Thanks so much
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 10-17-2009, 09:12 AM
Special Status
 
Join Date: Nov 2007
Posts: 435
Arrow Re: Posting

In index.php, and wherever else you have the_content() except the single post where it should be the_content(), after your permalinks, add the following:

<?php if (is_singular()) : ?>
<?php the_content(); ?>
<?php else : ?>
<?php the_excerpt(); ?>
<strong><?php _e('<a href="'.get_permalink().'">Read More &raquo;'); _e('</a>'); ?></strong>
<?php endif; ?>

<div style="clear:both;"></div>


Put the code above in place of the the_content().

In the above, you can modify Read More to something else like Continue Reading, etc.

I hope this is what you meant.

If you want to have AdSense only after the first post displayed as the_excerpt(), condition it as follows:

<?php if((is_home() && $post==$posts[0] && !is_paged()) || is_category() && $post==$posts[0]) { ?>
<p>
AdSense code
</p>
<?php } ?>

This will put adsense only in the first post when you click on Home
and also when you click on a Category.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 10-17-2009, 09:33 AM
Special Status
 
Join Date: Nov 2007
Posts: 435
Arrow Re: Posting

In your wp-includes, look for formatting.php.
Copy it over to your PC.

Open it in Notepad

Search for excerpt_length. The default is set for 55. Leave it as it is
or change it to another number. That's 55 words and not characters.

Again search for array_push($words, '[...]') You can change [...] to something else as long as you keep the array_push intact.

Personally, I have kept both as defaults.

I guess I was late. You already have the changes made.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 10-17-2009, 11:40 AM
robobobo's Avatar
Captain
 
Join Date: Apr 2006
Posts: 229
Default Re: Posting

Thanks a bunch guys that did it

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 01:53 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203