Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #5905

    Hey All,

    One other question if thats ok? I would like to limit the number of posts in column 4 of the footer – the default widget for that column. What do I need to change the widget to a 4 post limit. Sadly using the recent posts widget (or any other) isn’t an option as the formatting is changed.

    Big thanks again.

    #52158

    Any thoughts on a fix?

    Thanks.

    #52159

    You can use the PHP Code widget (drag from Available Widgets into the Footer-Column 4 field) and then use this code. “showposts” specifies the number of posts and you’ll need to replace “yourcategory” with whatever category you want the posts to come from.

    <?php query_posts('category_name=yourcategory&showposts=4'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <li><a href="<?php the_permalink(); ?>">
    <?php the_title(); ?>
    </a> </li>
    <?php endwhile; ?>

    But you will need to format the output.

    #52160

    Hey,

    just drag’n'drop the Avisio sidebar news widget into the column4 widget area. You can set the number of posts by using the sidebar news widget options.

    #52161

    Hey Guys,

    Thanks for the reply. I don’t have the Avisio sidebar news widget for some reason. I have a portfolio widget which I am using to display portfolio items in the side bar on certain pages.

    Could I edit a piece of code to change the number of posts / limit the number elsewhere?

    Thanks again guys, much appreciated.

    #52162

    Hey,

    I checked it again and the Sidebar News widget is part of the theme. Try to install the latest version of Avisio and check if the widget is in one of the “widget pools” – “Available Widgets” or “Inactive Widgets”. You can also use widgets like: http://wordpress.org/extend/plugins/category-posts/ but they’re not optimized for Avisio.

    #52163

    Thanks dude, but I am up to date. I don’t want to reinstall and lose any customisation, any other way to active this?

    I am using category post at the moment to link to certain categories but the formatting doesn’t work in the footer. Can i re-install the plugin somewhere or modify the PHP?

    #52164

    Please create me an admin account and send me the login data to: (Email address hidden if logged out) – I’ll look into it.

    #52165

    Thanks dude. Done.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Limit the Number of Posts – Footer Widget’ is closed to new replies.