• Hi all,

    I did a search, but could not find anything usefull, so please forgive me if this has been already discussed.

    I am hosting a friend’s blog on WP 1.2.2. It has been running for almost one year, and it’s quite popular in Italy.

    The problem is, that he uses lots of images in each post. That isn’t an issue, untill someone get to the monthly or category link through a search engine.

    I reached and sometimes passed my bandwidth limit several times in the past. I do not want him to delete his older posts, or removing the images.

    Is there a way to “disable” monthly archives or category view, or split posts in, for example pages with no more than 5 posts per page?

    If there’s a plugin or an hack, I would be thankfull if someone could point it to me.

    Thanks a bunch in advance, and sorry for my bad English.

    Greetings from Italy.

    Dario

Viewing 1 replies (of 1 total)
  • http://codex.wordpress.org/Template_Tags/the_excerpt

    You’ll want to use the_excerpt() (which will not display images, and cuts posts at 120 words) in your page template, within The Loop section. Basically, you need to set up an if/else statement in The Loop, replacing the_content() tag with the_excerpt() whenever you’re on an archive ($m) or category ($cat) page:

    <?php if($cat || $m) {
    the_excerpt();
    } else {
    the_content();
    } ?>

    Just replace the current <?php the_content(); ?> tag with this.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable category and monthly view’ is closed to new replies.