Formatting of entries on home page

Viewing 3 posts - 1 through 3 (of 3 total)
  • #1823
    stevemedcroft
    Participant

    Temporary URL: http://d7444149.u40.websitesource.net/

    I am just building a site for my wife and the shortened entries on the home page are not formatted the same way as the articles themselves. One post if a simple YouTube video link, for example. In the article page, the link produces an embedded video. On the homepage, no content whatsoever. In our second test post, the paragraph breaks are ignored in the home page summary of the article. Is there something we can do so that home page summaries reflect the content of the actual article (even if it’s only the first image and/X words of text)?

    #1824
    Daniel Tara
    Keymaster

    This is because the post lists show only the post excerpt by default (i.e. not fulled content but a stripped out, shortened version of it).

    To display the full content you need to do some modifications, [url=http://www.onedesigns.com/support/topic.php?id=233#post-344]this post[/url] explains what these modifications are.

    Basically what you need to do is replace every occurence of :

    <?php
    				$words = display_thumbnail(230,165,$words,55);
    			    if(count($excerpt) > $words) $count = $words;
    				else $count = count($excerpt); ?>
                  <p><?php for($i = 0; $i <= $count - 1; $i++) { echo $excerpt[$i]; echo ' '; } echo '…'; ?> "><?php _e('Read entire article','cover-wp') ?> »</p>

    or anything similar, with:

    <?php the_content( __('Read entire article','cover-wp') ); ?>
    #1825
    stevemedcroft
    Participant

    I’ll make that change. Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

Tagged: ,

You must be logged in to reply to this topic.