Greenguy's Board


Go Back   Greenguy's Board > Blogs and Blogging
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2007-05-06, 10:49 PM   #1
Ms Naughty
old enough to be Grandma Scrotum
 
Ms Naughty's Avatar
 
Join Date: Aug 2003
Location: Australia
Posts: 1,408
Send a message via ICQ to Ms Naughty
Get archives in blog header - why?

So, in the header file there's this line
<?php wp_get_archives('type=monthly&format=link'); ?>

Once the page is made it translates into a list of archives:
<link rel='archives' title='May 2007' href='http://www.msnaughty.com/blog/2007/05/' />
<link rel='archives' title='April 2007' href='http://www.msnaughty.com/blog/2007/04/' /> etc etc

This occurs above the <?php wp_head(); ?> bit.

Does it need to be there? I've got rid of the archives list in my sidebar coz I'm not that interested in giving people date-based archives anymore.

So I've just fiddled with my header and removed the archives bit with no obvious ill-effects. I've also moved the other link=rel and meta tags to under neath the wp_head bit with no ill effects either.

I'm doing this so my description and keywords are further up the header.

So, do you think this bit of editing will cause problems at some point?
__________________
Promote Bright Desire
Ms Naughty is offline   Reply With Quote
Old 2007-05-07, 08:32 AM   #2
twn
Shut up brain, or I'll stab you with a Q-tip!
 
twn's Avatar
 
Join Date: Dec 2005
Posts: 118
The first reply of the following topic might interest you:
http://wordpress.org/support/topic/115211
__________________

* Blog Submitter * Free WordPress
twn is offline   Reply With Quote
Old 2007-05-07, 08:44 AM   #3
walrus
Oh no, I'm sweating like Roger Ebert
 
walrus's Avatar
 
Join Date: May 2005
Location: Los Angeles
Posts: 1,773
Send a message via ICQ to walrus Send a message via Yahoo to walrus
Quote:
Originally Posted by grandmascrotum View Post
So, do you think this bit of editing will cause problems at some point?
nope
__________________
Naked Girlfriend Porn TGP
free partner account
walrus is offline   Reply With Quote
Old 2007-05-09, 06:31 PM   #4
jayeff
Just because I don't care doesn't mean I don't understand!
 
jayeff's Avatar
 
Join Date: Sep 2006
Posts: 95
Send a message via ICQ to jayeff
There are a whole host of possible links which can be inserted in a document's head section. But it is a navigation/accessibility feature which browser developers have so far never latched onto in a big way.

However there are a couple of links which are used, the obvious one being that which tells browsers where to find your stylesheet(s).

Another is for the favorite icon, although like the kind of links you mentioned, this too is redundant unless you call it something other than favicon.ico or have it located somewhere other than the root directory.

One "arising from" note is that all free WordPress themes (including the ones which come with the script by default) are intended for use by anyone and everyone. I believe I am right in saying that if you want to submit a theme to the official WordPress depository, it is not only considered good form to include all the standard features and functions: it is actually required.

But once you are developing a theme for your own site, there are quite a lot of functions you can remove and queries you can replace. Since I mentioned the stylesheet link, it is one: the virtue of having a bit of php is so that you, me and Uncle Tom Cobbley can drop the theme into a site and run it. But if you want to cut back on the queries, you can replace ones like that with a hard-coded path and file-name.
jayeff is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:26 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc