Forums

the_content Code Not Working (2 posts)

  1. jasonbarnettephotography
    Member
    Posted 1 year ago #

    I am using the Modularity theme for my blog. In the blog, I want to use the Featured Post option, which currently displays the most recent blog on the left 2/3 and the previous four entries on the right 1/3 of the screen.

    However, I only want the most recent blog entry to display what appears before the <!--more--> quicktag.

    I have found the proper location inside my featured.php file and added the following code:

    <?php
    global $more;
    $more = 0;
    the_content("More...");
    ?>

    However, the theme still displays the entire blog entry instead of just what appears before the <!--more-> quick tag.

    I am at a loss here. Any thoughts/suggestions/tell me I'm missing something simple?

  2. jasonbarnettephotography
    Member
    Posted 1 year ago #

    No responses so I'm bumping to maybe get some help.

Topic Closed

This topic has been closed to new replies.

About this Topic