Viewing 5 replies - 1 through 5 (of 5 total)
  • Your theme has some in-line CSS styles (which are either in the header.php or are being added by a plug-in). Either way, the one you’re looking for is .posts-default li { width: 205px; height: 225px; } – just change the value after height: (180px seems enough to me to allow for 3 lines of text).

    In order to list just a certain category on a page you will need to make a new page template and replace the loop with a custom one like this:

    <?php $filmsquery = new WP_Query(); ?>
    <?php $filmsquery->query('category_name=local-films'); ?>
    <?php while($filmsquery->have_posts()) : $filmsquery->the_post(); ?>

    Hope that helps

    Peter

    Thread Starter milehighcinema

    (@milehighcinema)

    You rock. The first thing worked perfectly. Sadly, I’m not well-versed enough with code and creating new page templates and the like. Possible you could give me some help on that?

    It’s actually easier than you think. Take your page.php file and rename it. At the top you should see something like this (although it does differ from theme to theme):

    <?php
    /*
    Template: Page.php
    */

    Change that Template line to be like this:

    Template Name: Local Films Page (changing the name to whatever you want)

    Now, go into the Dashboard and edit the page you want to apply the template to. On the right, in the Page Attributes panel, you should be able to select the template from the Template menu.

    Full information is in the Codex.

    Glad to have helped

    Peter

    Thread Starter milehighcinema

    (@milehighcinema)

    I created a page called pageofposts.php and added it to all the php files. I used the code under the “Page of Posts” section, but beyond that I’m pretty lost. The category I want to appear on the specific page is “Local Films.”

    Any suggestions?

    Thanks!

    Thread Starter milehighcinema

    (@milehighcinema)

    Ok, the template is called Local, and it appears in the dropdown box. I just don’t know how to assign the template to show a certain category of posts.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Post excerpts on main page’ is closed to new replies.