Category page with custom block on top

Posted in: Newspaper
Post count: 8

Hello.

I know how to change the template for the category pages, but it would be great to be able to add a block on top, for example, with the most popular posts of that category.

Any way to do that?

Post count: 22421

Hi,
You can change the category template and top post settings from the theme panel: http://screencast.com/t/KwjSE2Lc
If you want to add a block to the category templates, you can do so with a do_shortcode function inside the category templates or the category top posts: http://screencast.com/t/vaLSho5EXrXm.
Create the block you want in a dummy page and click on classic mode and switch to text mode so you can copy the shortcode for your block and then use the do_shortcode function to add it inside the file.
This however will require further css positioning as it will not display properly .
As an alternative, you could create static pages for your categories and use a 301 redirect from the category page to your static page.
Hope this helps.
Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.