WordPress.org

Ready to get started?Download WordPress

Forums

<wpgallery> tags stripped in archives/categories (wp-gallery) (2 posts)

  1. gour
    Member
    Posted 9 years ago #

    Hi!

    I'm using gallery with the wp-gallery plugin, but there is no thumbnail in the archives & categories - WP strips <wpgallery> tags and only
    album/picture appears in a post, while in the blog the post is complete.

    I run WordPress 1.5-beta-1 2005-01-26.

    Any idea?

    Sincerely,
    Gour

  2. Foyle
    Member
    Posted 9 years ago #

    WP 1.5 also strips links out of archives. The problem is in the function that creates the shortened versions of your posts that show up in the archive. I got tired of it so I just hacked the code so that the full posts show in the archives. It really only requires replacing one line in archive.php

    Just paste this code in place of line 42 (or thereabouts...it goes between the content div tags):
    <?php the_content('Read the rest of this entry »'); ?>

    The other advantage of this is that it allows you to direct people to a category and instead of getting an archive of that category with no pics and links, they get the whole deal.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.