Blog Mastermind Forums RSS Feed
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 20th February 2007, 03:22 PM
Experienced Blogger
 
Join Date: Oct 2006
Location: Lincolnshire, UK
Posts: 118
Send a message via AIM to godhn Send a message via MSN to godhn Send a message via Skype™ to godhn
Default Wordpress 2.1 more link doesn't work?

Hi guys

I wonder if anyone has installed WordPress 2.1 and has the <!-- more --> link in blog posts working?

If so, can you tell me what your <?php the_content() ?> tag reads like? I'm trying to use it, but whenever I do, it cuts off my post and doesn't give me the more link!!

And im struggling to find WP info relating to more links and wp2.1.

Any help appreciated!

Ta



Dan
Reply With Quote
  #2 (permalink)  
Old 21st February 2007, 01:26 AM
Junior Member
 
Join Date: Jan 2007
Posts: 20
Default

I looked at mine and it looks exactly the same..

I'll try to look further into this. One thing I can tell you (may have been mentioned here) is that the more command stops your RSS at that point so if you use more, you don't send out an entire post in your feed..

I'll get back to you if I find any info why your -more- wouldn't be working.

Rich
__________________
http://tek-works.com
Reply With Quote
  #3 (permalink)  
Old 21st February 2007, 10:39 AM
Blaine Moore's Avatar
Mentor
 
Join Date: Jan 2006
Location: Vacationland
Posts: 2,010
Send a message via AIM to Blaine Moore Send a message via Skype™ to Blaine Moore
Default

I use <!--more--> tags regularly, and my the_content() tag is just like that; it has no parameters passed into it. My guess is that if you are entering your more tag like you have above, is that you need to remove the spaces. The open comment more close comment should all run together

<!--more-->
and not
<!-- more -->
__________________
www.Run To Win.com

I have just returned from vacation and will be responding to private messages as soon as I catch up.
Reply With Quote
  #4 (permalink)  
Old 21st February 2007, 11:25 AM
Experienced Blogger
 
Join Date: Oct 2006
Location: Lincolnshire, UK
Posts: 118
Send a message via AIM to godhn Send a message via MSN to godhn Send a message via Skype™ to godhn
Default

Thanks guys... I appreciate the help. It doesn't make any sense.

I've just tried again, and I used the more button when posting, and checked there are no space in the more tag as Blaine suggested - it's fine tho.

I've also double checked my index.php code, and there are no arguments passed to the the_content() function.

I'm wondering if there's another php file with some "display this instead of more" type code (or maybe a css class to do the same?)

It's really annoying!

Keep me posted if you find out anything, thanks.


Dan
Reply With Quote
  #5 (permalink)  
Old 23rd February 2007, 12:06 AM
Daria's Avatar
Junior Member
 
Join Date: Feb 2007
Location: Cyberspace
Posts: 11
Send a message via Yahoo to Daria
Default

Hi godhn,

I recently installed WP 2.1 on three sites and no problem with the more tag. The way I use it is that I go to the post and click on the "code" and then click on the "more" button where I want the post to cut off. WP will automatically enter in the correct code.

My php code in my template for the content looks like this:

Code:
<?php the_content('<br /><br />(Continue Reading ...)'); ?>
I found some info on the WordPress Codex. Customizing the Read More tag. It has a little information the tag that may be useful. I believe you do need to the information between the brackets in order for the "more" tag to display.

Hope this helps. Let me know if I can be of more assistance.
__________________
Webernet Architect: Articles and tips on blogging, website administration, social networking, web design and having fun on the internet. My personal blog is Lexicon Indigo.
Reply With Quote
  #6 (permalink)  
Old 15th March 2007, 05:22 PM
Experienced Blogger
 
Join Date: Oct 2006
Location: Lincolnshire, UK
Posts: 118
Send a message via AIM to godhn Send a message via MSN to godhn Send a message via Skype™ to godhn
Default

Hi everyone,

Thanks for all the ideas and suggestions. I've sussed it! Hoorah.

Basically, the way my template worked, the _content() function was copied in the index.php and home.php. I was changing the one in index.

When I found the one im home.php, I edited that by putting some text in the function _content('Read more...') - and it works fine!!
Reply With Quote
  #7 (permalink)  
Old 16th March 2007, 12:28 PM
Blaine Moore's Avatar
Mentor
 
Join Date: Jan 2006
Location: Vacationland
Posts: 2,010
Send a message via AIM to Blaine Moore Send a message via Skype™ to Blaine Moore
Default

Quote:
Originally Posted by godhn View Post
Hi everyone,

Thanks for all the ideas and suggestions. I've sussed it! Hoorah.

Basically, the way my template worked, the _content() function was copied in the index.php and home.php. I was changing the one in index.

When I found the one im home.php, I edited that by putting some text in the function _content('Read more...') - and it works fine!!
I'll admit it, that didn't even occur to me...thanks for the update.
__________________
www.Run To Win.com

I have just returned from vacation and will be responding to private messages as soon as I catch up.
Reply With Quote
Reply


Thread Tools
Display Modes

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

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



All times are GMT -5. The time now is 05:33 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright Yaro Starak 2007