SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Evangelist
    Join Date
    Apr 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Wordpress (archives and dates)

    Do you know how to deactivate the Archives category ?

    Same question for the date, is it possible to deactivate the dates of posts ?

    Thanks for your help

  2. #2
    SitePoint Wizard ryanhellyer's Avatar
    Join Date
    Oct 2006
    Location
    New Zealand
    Posts
    2,323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AFAIK it is not possible to deactivate the date, but it is possible to remove it from the theme. There will be a tag somewhere in the theme which adds the date, I can't remember what it's called at the moment but it's probably fairly obvious as it'll presumably have 'date' somewhere in it's name.

    I also don't know how to 'deactivate' the archives category, but there's not really any need. Just add noindex to it, remove all links to it from your theme and voila it will (in theory) never be found. There may be a way to remove it entirely, but I've never tried as I can't think of any need for it.

    Ryan,

  3. #3
    Word Painter silver trophy Shyflower's Avatar
    Join Date
    Oct 2003
    Location
    Winona, MN USA
    Posts
    10,053
    Mentioned
    142 Post(s)
    Tagged
    2 Thread(s)
    The easiest way to deactivate the archives is to use the dynamic sidebar widget. When you use it, you can drag and drop exactly what you want into your sidebar and the default sidebar doesn't show. Find it via WordPress Dashboard->Presentation->Widgets.

    To deactivate the date, from your WordPress dashboard go to Presentation->Theme Editor and call up your Main Index Template. Look for this code:

    Code:
    <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    You can safely delete this without breaking your blog theme.
    If you don't want to delete the line, you can extend the author comment by moving the beginning "<!--" before the word "by" to the beginning of the line. Comments keep code from being parsed.

    Then your code would read as such:

    Code:
    <small><!-- <?php the_time('F jS, Y') ?> by <?php the_author() ?> --></small>
    Last edited by Shyflower; Nov 3, 2007 at 08:05.
    Linda Jenkinson
    "Say what you mean. Mean what you say. But don't say it mean." ~Unknown

  4. #4
    SitePoint Evangelist
    Join Date
    Apr 2007
    Posts
    429
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I will check this

    Thank you guys

  5. #5
    SitePoint Wizard ryanhellyer's Avatar
    Join Date
    Oct 2006
    Location
    New Zealand
    Posts
    2,323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AFAIK what ShyFlower showed above isn't actually deactivating anything per se, it is just removing it from the theme. So if you go to http://domain.com/2007/ you will still see all of the posts from the year 2007.

    Just wanted to point that out in case you were trying to completely remove it for SEO purposes or similar.

    Ryan,

  6. #6
    Word Painter silver trophy Shyflower's Avatar
    Join Date
    Oct 2003
    Location
    Winona, MN USA
    Posts
    10,053
    Mentioned
    142 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by ryanhellyer View Post
    AFAIK what ShyFlower showed above isn't actually deactivating anything per se, it is just removing it from the theme. So if you go to http://domain.com/2007/ you will still see all of the posts from the year 2007.

    Just wanted to point that out in case you were trying to completely remove it for SEO purposes or similar.

    Ryan,

    If it isn't the the WP Loop, it isn't rendered on the page, if it isn't parsed, it doesn't show up in the browser, if it doesn't show up in the browser, the search engines don't see it either. Therefore, using the dynamic sidebar keeps the archives off the page and out of the search engines.
    Linda Jenkinson
    "Say what you mean. Mean what you say. But don't say it mean." ~Unknown

  7. #7
    SitePoint Wizard ryanhellyer's Avatar
    Join Date
    Oct 2006
    Location
    New Zealand
    Posts
    2,323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Shyflower View Post
    If it isn't the the WP Loop, it isn't rendered on the page, if it isn't parsed, it doesn't show up in the browser, if it doesn't show up in the browser, the search engines don't see it either. Therefore, using the dynamic sidebar keeps the archives off the page and out of the search engines.
    Usually, but if for some freak reason someone else links to your archives page, then the SE's will find it and hence you will end up in their indexes. You could 100&#37; cover it by modifying the archives files in your theme to display nothing I spose.

    Minor issue though. It's unlikely to happen.

    Ryan,

  8. #8
    SitePoint Enthusiast
    Join Date
    Oct 2007
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Shyflower View Post
    If it isn't the the WP Loop, it isn't rendered on the page, if it isn't parsed, it doesn't show up in the browser, if it doesn't show up in the browser, the search engines don't see it either. Therefore, using the dynamic sidebar keeps the archives off the page and out of the search engines.
    Thanks for the info, i was also looking into this for a personal blog. Much appreciated
    resellerscene - WHM Master Reseller Hosting at its BEST!
    www.kjcpop.com - A new ASIAN Community open!
    www.visoads.com - Live VPS Auctions every 4 days!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •