Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   Can't get "more" tag to function (http://forum.bytesforall.com/showthread.php?t=3952)

mathmojo Oct 18, 2009 09:19 AM

Can't get "more" tag to function
 
Hi.

I'm using 3.4.4 on WP 2.8.4 and I can't get the "read more" function to work.
My site is http://mathmojo.com/chronicles

I have inserted:
Read the rest →
in the Atahualpa settings, and inserted the <!--more--> code into the html on my posts, but the entire posts appear on the home page.

What am I doing wrong?

Thanks for your help. I love your theme. If this gets solved, I will make a donation.

Yours truly,

Brian (a.k.a. Professor Homunculus at MathMojo.com/chronicles )

juggledad Oct 18, 2009 11:21 AM

Where did you put the <!-- more --> in the first post?
What have you got set at ATO->Configure EXCERPTS->Posts or excerpts on HOME page?
and Show the first X posts on HOME page as full posts?

mathmojo Oct 18, 2009 01:10 PM

The excerpts is set to full post. I tried using 'excerpt only' but that chopped all of the posts off at 55 words, which isn't what I'm looking for.

I put the more tag on the first post right after the paragraph which reads
Commonly, someone I am helping will ask, " But what if we are not allowed to do it that way?" Recently someone wrote in:
I have "0" set for "Show the first X posts on HOME page as full posts?"

paulae Oct 18, 2009 01:48 PM

The Custom Excerpts plugin does a nice job.

BradBrown Oct 18, 2009 02:27 PM

The problem is your more tag is inside html <p> </p> tags. The more tag won't work if it's inside any HTML tags. Go into HTML mode in the editor and strip out the HTML around the <!--more-->.

-Brad

mathmojo Oct 18, 2009 03:10 PM

Brad,

That was a noble try, but alas there's not a single <p> in the whole post. The only html is after the more tag. There is a <blockquote> tag in the post, but the more tag is not within it.

Thanks for the effort though. Any more thoughts?

Brian

BradBrown Oct 18, 2009 04:10 PM

There are LOTS of P tags. Every single paragraph in the post is wrapped in P tags. Go to your page in a browser and view the source. Below is an excerpt...

HTML Code:

<p>Commonly, someone I am helping will ask, ” But what if we are not allowed to do it that way?” Recently someone wrote in:</p>
<p><!--more--></p>
<blockquote><p>“I am fascinated with your approach to math but worry about teaching these kids differently from what their

The WordPress editor can be a bit tricky. When you switch to HTML mode, it hides the <p> tags and puts in blank lines. If you are typing out the more tag in the editor, be sure there are no blank lines before or after the tag. If you've done it correctly, when you go back into visual mode, you'll see a horizontal line at the break point.

It may be easier for you to use the more button in visual mode rather than typing it out. Just put the cursor where you want the break and click the more button at the top of the editor window. (It's the button right before the spell check button.) It will put the more tag in correctly.

-Brad

mathmojo Oct 18, 2009 04:27 PM

Brad,

Thanks so much. I didn't know that about the html editor in WP. That's a great hint. I'm going to go fix this now.

Brian

mathmojo Oct 18, 2009 06:55 PM

Brad,
I think I'm getting closer. I took out the bracketing <p></p> tags from around the <!--more--> tag, and I can see the little horizontal "more" bar in the visual editor, but no I still can't get it to function.

No matter what I do, the </br> tag shows up behind the more tag. Does this have anything to do with this?

I think I may be beginning to see the light, but I'm not sure. Do you know a good way of stripping out all the paragraph tags but still keeping the spaces? Is that the ticket?

paulae Oct 18, 2009 08:54 PM

Sorry for not reading more closely. The Custom Excerpts plugin, http://wordpress.org/extend/plugins/custom-excerpts/, is indeed useful, but not exactly what you were asking about.

Perhaps what's happening is that if you set the theme to show a full post on the front page, that over-rides your desire to split the page into 2. I'm just guessing here.

You could use the Custom Excerpts plugin, actually, and set the theme options to show only excerpts on the front page, but then use the plugin to make them longer than 55 words.

Maybe Juggledad can explain the difference between the more and page split icons.

juggledad Oct 19, 2009 05:03 AM

if you want to know about excerpts and readmore see http://forum.bytesforall.com/showthread.php?t=2708 post #14
-------------------------
Ok I just copied your text with the read more and tested it on a new install, and it worked as expected. So there must be some setting you have that is causing what you see. So to verify:

1) you are using the HTML editor
2) you have no html in the post, only the <blockquote> and <!--more--> shortcodes
3) at ATO->"Read More" tag->Read More - you have 'Read the rest &rarr;'
4) at ATO->Configure EXCERPTS - you have everything set to the defaults
5) you have tried this with ALL plugins deactivated

mathmojo May 16, 2010 10:48 PM

Finally took your advice about disabling all plugins. On a slow, satellite connection, it was a major pain in the butt, but it bore fruit.

The culprit was one of my favorite plugins, FasterIM Opt-in.

I'm going to have to figure out the bug, because I love that plugin.

Thanks for your help.

B

mathmojo May 17, 2010 05:45 AM

Finally fixed it with the new version of FasterIM opt-in plugin.

All is well in Math Mojo Land.


All times are GMT -6. The time now is 01:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.