More Link Not Working in New Theme
-
I can’t get my “more” link to work. I’ve tried to find out what’s going on, and I just can’t figure it out. Anyone help?
-
your single.php seems broken or not working;
you could paste the code of single.php into a http://pastebin.com/ and post the link to it here; someone might be able to check it.
you also have another problem with your site, caused by the validation errors:
http://validator.w3.org/check?uri=http%3A%2F%2Fsacred-flame.org%2F&charset=%28detect+automatically%29&doctype=Inline&group=0http://codex.wordpress.org/Validating_a_Website
there is a chunk of code before the doctype declaration, which can easily break the display in many browsers (your site is totally broken in Firefox3.6, for instance.)
Here’s the code I’m using for my single.php file
<center> <?php get_header(); ?> <!-- start index file --> <TABLE cellpadding="0" cellspacing="0"> <TR> <TD WIDTH="81" > </TD> <TD WIDTH="33" class="borderleft"></TD> <TD align="left" valign="top" class="content" width="466"> <?php get_template_part( 'loop', 'single' ); ?> </TD> <!-- end index file --> <?php get_sidebar(); ?>Addendum:
Apparently, for some reason, the actual php code isn’t showing in my markup on the website.
this line seem to output nothing in the single posts.
<?php get_template_part( 'loop', 'single' ); ?>what is the code of loop.php (or loop-single.php if it exists)?
(please use the pastebin)
My loop code is here. But part of the problem is that I apparently forgot a loop template altogether. I thought that WP would just default, I suppose.
If I try to put the twentyten loop code into my surrounding html from my index.php file, tho, it really messes up the entire single page look. I almost had it fixed until I discovered the really chopped up look of the single post page.
Unfortunately, I can’t figure out which markup is messing with my hard-code now!
πif you copy the loop.php from a different theme, it will have all differnt html tags, which are the structure for the formatting.
and these might not be compatible with your theme.what output do you want to have from loop.php?
what are the html elements you would use for your post title, post content, etc ?possibly try to use the code of a simple loop and start building from there:
http://codex.wordpress.org/The_Loop_in_Action
http://codex.wordpress.org/The_LoopIt has been fixed!
I finally decided that maybe – just maybe – the loop.php page didn’t need all the extraneous “pretty markup.” In other words: I took all
the header, footer and HTML stuff out of the loop.php file and now
everything is working fantastically.(Yes, it was a moment of “why the heck not!”)
Thanks so much for your help! It is so worth the time reading those pages on the Loop – it helped me understand a lot more!
π
Shucks! Spoke too soon!
Comments aren’t working.I’ll have to have a deeper look, I suppose ….
π
It’s all fixed now. I played with a few comments template tags and got it working.
π
The topic ‘More Link Not Working in New Theme’ is closed to new replies.