• I am using the ephoto theme and on my main blog page where it shows all the summary of all my blog posts. There is no formatting what so ever. No paragrapghs, no links, etc… When I click on the topic of the blog post where you can post a comment the formmatting is correct and everything is showing up formatted as I typed it.

    Not sure if this is a setting thing in wordpress or a change that needs to be made in the theme. I checked both settings and I didn’t see anything that would help. Thanks in advance.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Site url?

    Thread Starter storm180

    (@storm180)

    I’m seeing a fully formatted page in Firefox 3 and IE8 , so I’m assuming that you’re referring to the content of the posts themselves on the front page.

    Have a look at:

    https://quirm.net/2009/06/16/missing-post-images-on-wordpress-front-page/

    Although the article refers to missing images, I think it’s what is also causing your missing links and lack of formatting.

    Thread Starter storm180

    (@storm180)

    Yeh I was referring to the front page posts. Thanks for the article is was useful. I will add a excerpt next time I make a post.

    Thanks.

    Thread Starter storm180

    (@storm180)

    So I just tried to add an excerpt to a post and the theme ignores the excerpt completely. I even tried typing in something totally different and it ignores that field completely. I am not sure if its actually using the excerpt feature when it makes it own because it brings over more than 55 words. It will bring over my entire post to the main page but its totally unformatted.

    Any other ideas? Or what file do I need to look at to figure out whats up with theme.

    Have a look in index.php for the_excerpt or the_content. Failing that, drop of a copy of index.php into the WordPress pastebin and perhaps someone can figure out what’s going on.

    Thread Starter storm180

    (@storm180)

    So I have only two instances of the the_content in the theme one is in includes/single-blog.php

    <!--Begin Post-->
    
      <?php $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true); ?>
        <div class="post-wrapper">
            <h1 class="post-title" style="margin-top: 0px;"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
                <?php the_title(); ?>
                </a></h1>
            <div class="post-info" style="margin-bottom: 15px;">Posted by
               <?php the_author_posts_link(); ?>
                on
                <?php the_time('M jS, Y') ?>
                | <a href="#respond" title="<?php _e("Leave a comment"); ?>">
                <?php comments_number('no comments','one comment','% comments'); ?>
                </a></div>
            <div style="clear: both;"></div>
    <?php if($thumb !== '') { ?>
    <a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $thumb; ?>&h=200&w=200&zc=1" alt="<?php if($thumb_alt !== '') { echo $thumb_alt; } else { echo the_title(); } ?>"  class="blogthumbnail" /></a>
    <?php } else { echo ''; } ?>
            <?php the_content(); ?>
            <div class="comments-wrapper">
            <?php comments_template(); ?>
            </div>
            <img src="<?php bloginfo('stylesheet_directory'); ?>/images/comments-bottom-<?php echo $artsee_ephoto_color; ?>.gif" alt="comments-bottom" style="float: left;" />
            <?php endwhile; ?>
        </div>
        <?php else : ?>
        <!--If no results are found-->

    The other instance is in the main theme folder called page.php

    <?php get_header(); ?>
    
    <div id="container2">
    <div id="left-div2">
        <?php if (have_posts()) : ?>
        <?php while (have_posts()) : the_post(); ?>
        <!--Start Post-->
        <div class="post-wrapper">
            <h1 class="post-title2"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
                <?php the_title(); ?>
                </a></h1>
            <div style="clear: both;"></div>
            <?php the_content(); ?>
        </div>
        <?php endwhile; ?>
        <!--End Post-->
        <?php else : ?>
        <!--If no results are found-->
        <h1>No Results Found</h1>
        <p>The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.</p>
        <!--End if no results are found-->
        <?php endif; ?>
    </div>

    There is nothing in any other file with the_content in the theme and none with the_excerpt.

    You have a WordPress Page called “Blog” yes? Does it use a custom template (check by editing that page and looking in the Template dropdown under Attributes)?

    Thread Starter storm180

    (@storm180)

    Nope there is no wordpress page called blog under pages. The setup for the blog page is actually controlled through the themes control panel under appearance. Under page navigation in this panel I have the option to turn on and off the blog link and change the what the blog page tab says and thats about it.

    Ah! Looks like that theme does use a custom template of sorts. What php files do you have in the theme apart from index.php, page.php and functions.php?

    Thread Starter storm180

    (@storm180)

    Files in the root directory of the theme

    404.php
    category.php
    comments.php
    comments-popup.php
    footer.php
    header.php
    home.php
    searchform.php
    sidebar.php
    simple_recent_comments.php
    single.php
    timthumb.php

    In the /include section of the theme I have these.

    about.php
    about-home.php
    ads.php
    blogcat.php
    default.php
    deafaultcat.php
    defaultindex.php
    featured.php
    popular.php
    single-blog.php
    single-photo.php
    thumbnail.php

    Likely candidates:
    blogcat.php
    default.php
    deafaultcat.php
    defaultindex.php
    single-blog.php

    If home.php references any of these, drop them from the list of likely suspects.

    Thread Starter storm180

    (@storm180)

    So I checked home.php and none of them referenced any of the php’s that you listed. Have any idea what I might be looking for in those file to figure out why I have no formatting on the main page and then how to fix it?

    Thread Starter storm180

    (@storm180)

    Ok so through some trial and error I found which file controls that page. Its the blogcat.php. I made some changes to it but I didn’t get what I was looking for.

    Here’s the code.

    <span class="current-category">
    <?php single_cat_title('Currently Browsing: ', 'display'); ?>
    </span>
    
    <?php if (have_posts()) : while (have_posts()) : the_post();
      if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
    
      <?php $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true); ?>
        <div class="post-wrapper" style="margin-bottom: 15px;">
            <h1 class="post-title" style="margin-top: 0px"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
                <?php the_title(); ?>
                </a></h1>
            <div class="post-info" style="margin-bottom: 15px;">Posted by
               <?php the_author_posts_link(); ?>
                on
                <?php the_time('M jS, Y') ?>
                | <a href="#respond" title="<?php _e("Leave a comment"); ?>">
                <?php comments_number('no responses','one response','% responses'); ?>
                </a></div>
            <div style="clear: both;"></div>
    
            <?php if($thumb !== '') { ?>
    <a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $thumb; ?>&h=200&w=200&zc=1" alt="<?php if($thumb_alt !== '') { echo $thumb_alt; } else { echo the_title(); } ?>"  class="blogthumbnail" /></a>
    <?php } else { echo ''; } ?>
    
            <?php the_content_limit(600); ?>
    
        </div>
                <div style="clear: both;"></div>
            <?php endwhile; ?>
    
    <div style="clear: both;"></div>
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    else { ?>
    <p class="pagination">
        <?php next_posts_link('&laquo; Previous Entries') ?>
        <?php previous_posts_link('Next Entries &raquo;') ?>
    </p>
    <?php } ?>
    <?php else : ?>
    <!--If no results are found-->
    <h1>No Results Found</h1>
    <p>The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.</p>
    <!--End if no results are found-->
    <?php endif; ?>

    I tried replacing the line <?php the_content_limit(600); ?> with the_content and my results were not what I wanted. When I made this change the text under the titles disappeared. Any ideas?

    do u find what u were looking for !!!

    i had exact same problem

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘unformatted text on main blog page’ is closed to new replies.