I purchase this template for a client and so far it’s doing exactly what they want, however I’m a bit stuck with this…
They want the home page showing 2 columns to work as mini blogs, one for events and one for news. So here’s what I’ve done so far:
– using the dynamic template builder, I created one for the home page with 2 columns
– each column content is “post from category”
– created the categories “news” and “events”
– created a few posts under each category
Now the problem I have is that only the most recent post is showing under each column/category, and I’m stuck. How can I change this so that more than one post is shown?
If anyone can help I’d be very grateful!!
You will need to edit line 682 in the helper-templates.php page. This is in the “includes” folder of the theme files.
You’ll change the number next to posts_per_page from 1 to however many posts you would like displayed.
Example with 5 posts per page:
$data['query_post'] = array( 'cat' => $data['value'], 'posts_per_page'=>5, 'offset' => $this->offset_tracker['cat'][$data['value']]);
The topic ‘Home dynamic template – 2 columns display posts, how to show more than 1 post’ is closed to new replies.