Forums

[resolved] More Link Not Working in New Theme (10 posts)

  1. witchalan77
    Member
    Posted 1 year ago #

    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?

    http://sacred-flame.org/

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    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=0

    http://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.)

  3. witchalan77
    Member
    Posted 1 year ago #

    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" >&nbsp;	</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(); ?>
  4. witchalan77
    Member
    Posted 1 year ago #

    Addendum:

    Apparently, for some reason, the actual php code isn't showing in my markup on the website.

    Here's a screenshot.

  5. alchymyth
    The Sweeper
    Posted 1 year ago #

    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)

  6. witchalan77
    Member
    Posted 1 year ago #

    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!
    :)

  7. alchymyth
    The Sweeper
    Posted 1 year ago #

    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_Loop

  8. witchalan77
    Member
    Posted 1 year ago #

    It 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!

    :)

  9. witchalan77
    Member
    Posted 1 year ago #

    Shucks! Spoke too soon!
    Comments aren't working.

    I'll have to have a deeper look, I suppose ....

    :)

  10. witchalan77
    Member
    Posted 1 year ago #

    It's all fixed now. I played with a few comments template tags and got it working.

    :)

Topic Closed

This topic has been closed to new replies.

About this Topic