• I am listing on a main page all the blog and news we are posting. It show the title and the entire news text. I am trying to show as follow: any help is appreciated.

    The month and Date
    Title
    body text : here i just need a blug of limit 100 character with a link to read more

    The code that I have is: is there a better code to list the format I want?

    <?php
    if(have_posts()) {
    while (have_posts()) {
    the_post();
    $format = get_post_format();
    get_template_part(‘loop-single’, get_post_format());
    }
    }
    ?>

Viewing 1 replies (of 1 total)
  • Chad

    (@lynneandchad)

    Well, the first thing you want to do is create a child theme to protect your modifications the next time your theme gets an update.

    Then (in the child theme) modify your loop to use the_excerpt() instead of the_content().

    This thread has a good method for limiting your excerpt by character count rather than by word count.

Viewing 1 replies (of 1 total)
  • The topic ‘News and Blog Articles’ is closed to new replies.