Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nate51

    (@nate51)

    @eddioot Link to the blog is https://www.ddrops.ca/blog I believe it’s using the default index.php file.

    Thread Starter nate51

    (@nate51)

    Solved half my own problem, hopefully this will help anyone with the same issue. I found another code to use and mixed and matched with the old code I had so that I could bring in the newest feed from the database but use the styling options from the previous box.

    <?php
    $args = array( 'numberposts' => 1 );
    $lastposts = get_posts( $args );
    foreach($lastposts as $post) : setup_postdata($post); ?>
        <?php
    		$_tmp=get_the_excerpt('');
    		$_tmp=(strlen($_tmp)<250?$_tmp:substr($_tmp,0,250-3)."...");
    		echo "<p>".nl2br($_tmp); ?>
        <p><a href="<?php the_permalink() ?>">More...</a></p>
    <?php endforeach; ?>

    Hope this helps anyone with a similar issue.

Viewing 2 replies - 1 through 2 (of 2 total)