• Resolved centreformedicalhumanities

    (@centreformedicalhumanities)


    I have inherited a site with an existing theme and custom css. On the home page there are three areas (featured/recent/current calls…) where the recent posts are located based on the tags and categories applied to the post. Curently there are three in each area. I need to add more to the current limit of three to each area, however I cannot find the mechanism that defines this. It is not the css and I cannot see anything in the php file either. Can anyone provide some insight for this?

    Site is: https://centreformedicalhumanities.org/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    When you are creating/editing the post; look over to the right of the content editor and you should see two different areas; one for tags, and another for categories.

    Note; if you do not see these areas, then look at the top-right of the page for a little tab named “Screen Options”. Click that tab, and make sure “tags” and “categories” are checked.

    Next, you will want to select either the tag or category (whichever is applicable); and save the post.

    This should group the post with the others.

    Thread Starter centreformedicalhumanities

    (@centreformedicalhumanities)

    Thank you Josh! I think though that I must not have been very clear. All the posts are grouping appropriately to the area they are meant to dsiplay in on the home page. However, on the home page these areas (featured/recent/current calls…) only disply three posts per category. I would like to increase the amount of posts in each category on the home page to at least 5… Does that help?

    Thread Starter centreformedicalhumanities

    (@centreformedicalhumanities)

    Good news,I found it, it was in the front-page.php code, I changed the setting from 3 to 4…

    <?php $args = array(
    						'posts_per_page' => 4,
        						'category_name' => 'announcements'
    						);
    						$wp_query = new WP_Query( $args );
    						while ($wp_query->have_posts()) : $wp_query->the_post(); ?>

    Relief…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Content on home page’ is closed to new replies.