Forums

Exclude post from monthly archive (7 posts)

  1. Derice
    Member
    Posted 8 months ago #

    How can I excluded a post from showing up in the monthly archive?
    I know pages are excluded by default, but I can't add pages to a category.

    What's the best way to achieve this?

  2. MichaelH
    moderator
    Posted 8 months ago #

    Could could your archive template to exclude that post.

    Or look at something like http://wordpress.org/extend/plugins/smart-archives-reloaded/ that allows you to exclude a category.

  3. Derice
    Member
    Posted 8 months ago #

    Thanks, but this plugin doesn't seem to work.
    Gives me a lot of php errors.

  4. MichaelH
    moderator
    Posted 8 months ago #

    Installed plugin
    Activated plugin
    Pasted [smart_archives] into a Page

    it worked.

  5. Derice
    Member
    Posted 8 months ago #

    I overlooked the tag, I'll give it an other try. (I'll report back if it worked or not)
    Thanks for pointing it out to me!

  6. Derice
    Member
    Posted 8 months ago #

    This plugin is far from what I meant.

    I'll try to clarify myself:

    A page can't belong to a category and therefore doesn't show in the monthly archives.
    A post belongs to a category and therefore shows up in the monthly archives.

    What I want is:
    A page/post that belongs to a category but doesn't show in the monthly archive.

    What plugin can I use to achieve this?

  7. MichaelH
    moderator
    Posted 8 months ago #

    The plugin http://wordpress.org/extend/plugins/page2cat/ will allow you to assign categories to pages.

    In lieu of finding a plugin that 'excludes' things from your archives, you may want to review Creating_an_Archive_Index and code to ignore that particular post.

Reply

You must log in to post.

About this Topic