IDGLabs.COM - tips, tools and resource

Knowledge Sharing - Want to participate in the discussion?

Web Promote Dictionary

AdCenter
          o AdCenter refers to ’s Cost-Per-Click ad network. Due to its relative newness in the industry of online marketing, it only has a limited market share as compared to Adwords.
    

      

          o is ’s contextual advertising network. Website owners can enroll in this ad serving program to allow text, , and advertisements administered by to be on their . Revenue is generated on a per-click or per-thousand impressions basis and publishers share the profits from those ad clicks with .
           
AdWords
          o AdWords refers specifically to ’s advertisement and link auction network. AdWords offers advertising and site-targeted advertising for text and ads at the local, national, and international level.
           
Click
          o A click generally refers to a campaign, where a click would indicate that a user clicked on an ad or listing and was delivered to a website. Thus, a click on an ad results in a hit, or a visitor, to a web site.
           
Contextual Advertising
          o Contextual Advertising is the term used to describe advertising programs that generate and display relevant advertisements on a site based on the specific content of that webpage. was the first contextual advertising program and remains the most popular one.
      

    
Conversion
          o A conversion is a measure of a measurable goal being achieved on a web site. This will of course vary from site to site. It could be a sale transacted, a lead form filled out, or a phone call made to the company. A conversion is the most important metric, because it related directly to revenue generated for the business.
 

         
Cookie
          o At the technical level, a cookie is a small data file (often URLs, Web addresses, .) created by a Web and stored on a user’s . The purpose of cookies are to help websites customize a visitor’s experience, as well as allow affiliate program managers to track conversions.
 

          
CPA
          o CPA stands for “Cost Per Action” and is defined as the cost to an advertiser for a specific action taken by a user in response to an ad. An “action” may be anything from an ad click to buying a product. It is a very useful way to measure the effectiveness of online advertising.
 

          
CPC
          o CPC stands for “Cost Per Click”. It is the specific amount that an advertiser is charged each time their ad is clicked. Most ads and contextual ads are sold in auctions where advertisers are charged on a Cost Per Click basis.
 

          
CPM
          o CPM stands for “Cost Per Thousand Ad Impressions”. This refers to how much an advertiser pays for 1,000 impressions ( views) of its ad, regardless of the consumer’s subsequent actions. CPM is often used to measure how profitable a website is or will be.
 

         

          o or “Cascading Style Sheets” is the language used to describe how an HTML document should be formatted. Both web designers and users often use to create style that specify how different text elements appear on a webpage.
 

         
CTR
          o CTR is short for “Clickthrough Rate” and refers to the ratio of the number of clicks on an ad compared to the number of views. CTR is helpful in measuring an ad or link’s effectiveness, as well as the of a particular source or . Generally, the higher the clickthrough rate the better. ads tend to have higher CTRs than traditional banners ads.
 

         
Dayparting
          o Dayparting allows advertisers to adjust bids, or pause and resume campaigns based on the time-of-day or day-of-week. This strategy involves bidding more when your target audience is available and less when they are unlikely to be available.
  

        
Deep Link Ratio (DLR)
          o A deep link is a link that points to an internal within a website. Deep Link Ratio refers to the number of internal pages which are linked from other website’s most targeted relevant to your most targeted relevant .
 

          
Flash Content
          o Flash content is the graphic animation used on websites to make them look rich and interactive. However, because flash contains minimal relevant content, engines have more difficulty and websites that utilize flash content.
 

         
Learning center home
          o Your guide to marketing
 

         
Frames
          o Frames is a feature supported by most Web browsers that allows website designers to display two or more pages (frames) in the same browser window. Although this web design technique facilitates consistent site navigation, frames have now been replaced by more effective content site building tools.
 

         
Dance
          o “ Dance” was the informal term used to describe ’s monthly update of its rankings. Now that has shifted to a constantly updating index, it no longer relies on this monthly procedure.
 

         
Hit
          o A hit is a single view of a web , web or file.
 

          
Impression
          o Used generally when referring to campaigns, an impression refers to when your ad is shown on a results after being triggered by a user’s query.
 

          
Landing
          o A landing is the webpage that a visitor arrives at after clicking on a link or advertisement. It is also referred to as a destination , destination URL, or target URL.
 

         

          o is the of getting high quality websites to link to your website in order to increase link popularity and pagerank. engines consider websites with high quality inbound links to be more relevant, authoritative, and trustworthy, which helps boost their rankings in the results.
 

         
Long Tail
          o Long tail are phrases (normally composed of 3 to 4 ) that are more precise and specific, and therefore have a higher value. When long tail are searched they are much more likely to convert to sales than more generic .
  

        
One-Way Links
          o One-way links are links to your site from that do not receive a link from your site. These are much more effective in increasing link popularity than reciprocal links because they show that other want to link to your site without receiving an inbound link in return.
 

         
Organic Rankings
          o Also known as “natural” rankings, these are the results that are supposed to be the most relevant results to the query in question. Unlike , you cannot control where you show up, and you do not pay each time a user clicks on the link. The rankings are based off of hundreds of factors, including the content on the site, the links from other to that site, the of the site and much more. Also unlike the sponsored links, these rankings can take years to achieve, and the incumbent have a huge advantage over newcomers.
 

         

          o Founded in 1997, is the pioneer of marketing and advertising. In 2003 it was bought by ! and subsequently branded as ! Marketing ().
   

       
View
          o A view is a single being viewed a single time by a single IP address. Thus, one unique visitor resulting from one click could explore a website, visit ten pages and tally 10 views.
 

          
PageRank
          o PageRank is the index used by to rank websites on a scale of 0 to 10. This score is determined by using a complex logarithmic scale, based on a variety of factors including link popularity.
 

          
Pay Per Call
          o Pay Per Call is similar to advertising, however, instead of clicking a sponsored link, pay-per-call ads display a toll- telephone number that the person can call. The advertiser therefore receives a phone call instead of a visitor who clicks on their link and is then directed to their webpage.
 

         
()
          o Also known as “sponsored links” or “paid ”, these are the text ads on the top and down the right side of the results pages of nearly every major . Each time a web searcher clicks one of these links, the advertiser pays the engines, from $.01 to $10 or more (the average is around $1-2 per click for positioning on the top of the ).
 

         
PPA (pay per action)
          o Pay-Per-Action advertising is a new pricing model that enables advertisers to pay only when specific actions that they define are completed by a visitor on their site. For example, instead of paying for clicks or impressions, an advertiser may choose to pay only when a user makes a purchase or signs up for a newsletter.
 

         
Quality Score
          o A quality score is a measure used by to assess the quality and of your ads and determine your status, minimum CPC bid, and ad rank. The score is determined by your ’s clickthrough rate and the of your ad text, , and landing .
  

        
Query
          o A query is the particular word, phrase, or group of words that a searcher enters into a .
 

         
Reciprocal Links
          o Reciprocal links are links to another website placed on your site in exchange for links to your site placed on their website. Quality reciprocal link exchanges can be an effective way to build link popularity and boost rankings if done effectively, however, reciprocal links offers of low quality should be avoided.
 

         
Referrer
          o A referrer is the source from which a particular website visitor came from.
 

         
ROAS
          o ROAS stands for Return On Advertising Spending and represents the dollars earned per dollars spent on advertising. ROAS is computed by dividing revenue derived from the ad source by the cost of that ad source.
 

         
ROI
          o ROI stands for Return On Investment and is a measure of how much return you will receive from each marketing dollar.
  

        

          o stands for Rich Site Summary or Real Simple Syndication. It is a method of sharing content among different websites. can syndicate “feeds” (content) and users can use an application known as an reader to these feeds.
   

       
Marketing ()
          o Marketing is the broad term that encompasses all efforts with regard to achieving leads and sales from the engines: Management, , landing generally all under the umbrella of Marketing, though the phrase is used quite liberally and in a variety of contexts.
 

         
()
          o is the of increasing a web site’s organic rankings. The is complex and time-consuming, and includes improving web site usability, content building, , social media and much more.
 

         
Submission (SES)
          o Submission refers to the act of telling (”submitting”) the that a website exists; it is basically a request for the to visit, index and rank the site according to relevant . Several years ago, with hundreds of engines competing for market share, it was a valuable service on it’s own. More recently, Submission is a very small - and many times unnecessary - part of a Marketing effort.
  

        
SERP
          o SERP stands for Results and refers to the on which the engines display the results for a particular query.
   

       
Site Map
          o A site map is a visual model of the pages of a website. It is used to help engines navigate through your website.
      

    
Unique Visitor
          o A unique visitor is a of the number of distinct IP addresses that have accessed a web or web site in a period of time. So in a given month, a web site may have 1,000 visits, and 600 unique , indicating that some of those 600 unique visited the site more than once, totaling 1,000 visits total.
   

       
URL
          o URL stands for Uniform Resource Locator and refers to the unique web address of any web .
    

      
Viral Marketing
          o Viral Marketing include self propagating marketing techniques. Common channels of transmission include email, blogging, and word of mouth.
    

      
! Marketing
          o ! Marketing () is a -based or “sponsored ” online advertising service provided by !
           

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
  • 0 Comments
  • Filed under: Internet News
  • Google Sitelinks: The Ultimate FAQ

    What are Sitelinks ? They are a collection of links, automatically chosen by ’s algorithm, to appear below the result of website, linking to main pages of your website. They are randomly chosen, although you can block any link from appearing. We will discuss more about Sitelinks in the Sitelinks FAQ section below.

    Recently, some of my websites got Sitelinks whilst I tried different ways of reaching this milestone.

    Some time ago, Vanessa Fox, from the Webmaster’s Central blog, wrote that the from the Help describing these Sitelinks, has been updated to reflect “information on how generates these links”. That’s crap to say the least, because that Help about Sitelinks, just states that they exist, are automatically generated and nothing more.

    Although no official explanation except this very basic is offered by , I will try and write down a few of my own ideas, about when and how to get these Sitelinks for your website. Whilst I can’t promise you guys that ALL of the procedures below are involved in the of making Sitelinks appear for your website, I can definitely guarantee you that SOME are.

    The above are true mainly because I have always (during months / years) tried 4 to 6 procedures at a time so I can’t really know which one had the most important contribution to the appearance of Sitelinks.

     

    Procedures which may be involved in the appearance of Sitelinks:

    1. The number of links pointing to your website’s index , using the several main of your website as anchor. For example, for my blog, the two main are “Cristian Mezei”, my name, and “SeoPedia” the name of my blog. Sitelinks appear only for a few main , not for every your website ranks for.
    2. The number of searches and SERP clicks for the main I described above. you have to have a certain number of clicks for that , to be able to reach a minimum requirement for the appearance of Sitelinks. This makes which are not searched enough, to never have Sitelinks. Although some of my coleagues have mentioned that has nothing to do or has everything to do with Sitelinks, I firmly believe that for a particular or keyphrase is very important.
    3. The number of indexed pages for the you are targeting is also important. Please keep in mind that I am not discussing about the number of indexed pages for your website, but for the number of results shown in for that particular .
    4. The of the website is definitely an aspect when deciding how and when Sitelinks appear. As far as my tests go, and using a naturally and organically built website (no extensive or forced ), you can NOT have Sitelinks if the website is younger than 18-24 months, varying from case to case.
    5. You have to rank #1 for that particular (and the has to be ) to be able to have any Sitelinks at all. This is very important and it has been proven true in 100% of times.

    Misleading advices about Sitelinks

    Whilst many other specialists and/or bloggers from the industry around the have tried to help you figure out some ways to get Sitelinks, I will try to contradict them because some of those advices might not have a contribution to your effort, mainly because they are just too general and my experience says that they could be just loose-ends. Some of these advices might be:

    • Making your website W3C valid. This is not a bad thing, but I highly doubt that it will make your website more prone to get Sitelinks. A lot of people have reported building their website with erratic from 1992, and still having Sitelinks.
    • Having links from powerful websites. I doubt that this aspect will help you in getting Sitelinks at all. Have a look at how I see inbound links having an effect, above (in the Procedures section).
    • Having a lot of links (generally). I doubt that having tens of thousands of any links will move you up to the ladder, regarding Sitelinks. Whilst links will help I have explained above (in the Procedures section), specifically, in what way they will help.
    • Some advices were really something like : “Make the website useful” or “Add Meta tags”. Whilst these are surely helpful for any website, they may have nothing to do with your website getting Sitelinks.
    • Having a very well designed navigation menu. There were websites which had erratic or very well designed navigation menus and links within the website and still they all got Sitelinks.
    • Pagerank has nothing to do with Sitelinks. There are PR7 and PR2 websites that got Sitelinks.

    Although I don’t want to contradict (I just did that, but well .. ) my fellow colleagues, the above are my personal opinions and I wanted to stress them out. The reason I didn’t named names is obvious.

    And as the title of my post says, below you’ll get the FAQ section, where I tried to answer most, if not all the questions that poped up in the past year, from all kinds of readers or people:

    Sitelinks: The FAQ

    Q: When are Sitelinks generated ? Is there some kind of Pagerank-alike update ?
    A: I do want to stress out that about 4 of my websites got Sitelinks in exactly the same 1-2 day period, although the websites are very different one from another. One is 2 years old, another is 3,5. One has 1000 links, the other has 40.000 links. One is in the auto domain one is my blog. They are not linked in-between them. So all of this makes me think that there is some kind of general update of the Sitelinks, much like the updates for Pagerank, Inbound links or Images. Since QOT got their Sitelinks on exactly the same day (6th Feb.) as many of my other websites, I am positive that there is a general Sitelinks update.

    Q: I can’t see any Sitelinks generated within my Sitemaps account, although they appear in !
    A: Sitelinks take anywhere from 2 weeks to 1 month to appear within your Sitemaps account, after they first appeared in the SERPs. Then you will have better control over some of the links.

    Q: Why doesn’t my very important “Clients” get in the Sitelinks section ?
    A: This may have to do with the fact that Sitelinks are usually generated from the first level links only. This means that if you have a reachable by two clicks, it will never be included in the Sitelinks section. On rare occasions, deeplinks will be chosen, but I am not sure as to how these websites are chosen. Also make sure that you have pure HTML links. No Javascript or Flash.

    Q: My website doesn’t have too much text links. Does this mean I’m doomed ?
    A: will generate Sitelinks from links too, as long as the has the ALT tag. As other people have found too, it seems that the Sitelinks algorithm may chose a Sitelink even if you have no link towards it from your website, but in exchange, the has a large number of links from other websites.

    Q: What’s the point of having these stupid Sitelinks ?
    A: One simple and huge reason: Trust and brand. Sitelinks have began to resemble trust lately in the eyes of the normal surfer (not to us SEMs, simply because we know there are heavily penalized websites who still got Sitelinks), so any website who has them is more prone to get clicks from the SERPs, from the terms that show Sitelinks.

    Q: What’s the minimum and maximum number of Sitelinks I’ll get ?
    A: Minimum 2, maximum 8. I still can’t figure it out how assigns the number of Sitelinks to each website, except popularity. Most of my popular websites have 8. Most of my not-so-popular websites have 2 to 4.

    Q: I don’t have a Sitemaps account. Will I still get Sitelinks ?
    A: Definitely. The only drawback is that you will not have any control over them.

    Q: How are the Sitelinks calculated ? Which links get in and which not ?
    A: There are all kinds of opinions. After closely studying all my websites, I myself will still believe that they are chosen randomly. Not after , not after inbound links. There’s an interesting thread at SEW which you might want to read to get some speculation.

    Q: I have a in the Sitelinks section that doesn’t exist anymore. What should I do ?
    A: It appears that the crawl delay of the Sitelinks is at least one month. So if you have a that doesn’t exist anymore, try to 301 redirect it to the new one. The Sitelinks will then work ok.

    Q: In my Sitemaps account I can remove Sitelinks if I don’t like them ?
    A: Indeed you can. But please be careful when you do that, because if you remove a Sitelink it will not get replaced by another. This means that if you had 6 Sitelinks, and you block one because it’s not appropiate, you will be left with 5 Sitelinks in the SERPs. The 6th one will not be replaced with a new Sitelinks.

    Vanessa Fox Nude forgotten all important post

    The title is just a teaser for Vanessa. She’s had that Nude thing like forever :)

    For you guys who don’t know Vanessa, she’s been the women who lead the Webmasters Central team until she moved to Zillow.

    In this section I’ll analyze the post she made on her blog right after she left Google. I’m actually amazed to see how I can’t any reactions to this post, since IMHO it’s the most important post about Sitelinks ever. More important than what has released and certainly more important then I or my colleagues speculate, simply because she’s been involved in the of releasing the Sitelinks. Block quotes are quotes from Vanessa’s post:

    For instance, if I do a for [duke’s chower house seattle], am I looking for directions? Hours? A menu? doesn’t know, so they offer up several suggestions. (Quality aside: a link to the menu shows up in the sitelinks, but if you do a for [duke’s chowder house seattle menu], that same link doesn’t show up on the first . In fact, no pages from the Duke’s site show up.)

    Basically, what Vanessa is telling us is that Sitelinks will NEVER appear for specific terms. So that’s why we get Sitelinks for “Computers” or “Cristian Mezei” or “HP” or generally, company names as well as very general industry terms.

    autogenerates the of sitelinks at least in part from internal links from the home . You’ll notice in the Duke’s example that one of the sitelinks is “five great locations” which also appears as primary navigation on the Duke’s home . If you want to influence the sitelinks that appear for your site, make sure that your home includes the links you want and that those links are easy to crawl (in HTML rather than Flash or Javascript, for instance) and have short anchor text that’ll fit in a sitelinks listing. They’ll also have to be relevant links. You can’t just put your Buy Cheap Viagra now link on the home of your elementary school site and hope for the best.

    In the above, Vanessa confirms me what I already told you in the FAQ section above. Sitelinks will be chosen from links present in the homepage only. I still firmly believe that some websites have Sitelinks from deeplinks within the website. How and when these websites are chosen, is still a mystery.

    One more important thing we learn is that Sitelinks are chosen from relevant links in the homepage. Instead of repeating what Vanessa said about , read the above quote.

    There is a lot of other useful information inside Vanessa’s post, but since I already tackled those points in my previous sections, I left them aside.

    Other opinions about Sitelinks

    I asked a colleague of mine involved in too, what he thinks about Sitemaps. I thought to put his answer here as well:

    Cristian asked me about my opinion regarding Sitelinks. Breaking this question in small parts, here are my thoughts.

    The sitelink in the results are similar with the siteinfo.xml provided for the Alexa toolbar, a simple for a webmaster to provide most important direct links to his website structure. version of Siteinfo is different because you cannot specify WHICH link in your website is a Sitelink. You can only ask remove one link from the Sitelinks ( Webmaster panel ).

    Why are the Sitelinks appearing, when and under which algorithm? The algorithm used is totally automated and is taking in consideration the following criteria’s:

    • Old powerful website.
    • The sitelinks are pages which are coming on first position in SERPs.
    • The sitelinks are most of the time associated with top results related words: “domain”, “domain ”, “domain demo” .
    • The sitelinks are probably not influenced by PageRank.

    from: seopedia.org/internet-marketing-and-seo/google-sitelinks-the-ultimate-faq/

    Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
  • 0 Comments
  • Filed under: Google, SEO
  • Here is an example demonstrating the power of cURL. This posts all the correct post fields to Googles universal Account Services login and brings the user directly to the Overview . Cookies are used in this example as well as setting the USER AGENT and REFERRER HTTP headers.

    Downloads

     

    Curl Google Analytics Login Code Example

     

    source:www.askapache.com/webmaster/login-to---using-.html

    Tags: , , , , , , , , , ,
  • 0 Comments
  • Filed under: Google
  • Theme Development

    The following article is about or designing your own Theme. If you wish to learn more about how to install and use Themes, review the documentation regarding Using Themes. This topic differs from Using Themes because it discusses the technical aspects of writing to build your own Themes rather than how to activate Themes or where to obtain new Themes.

    You may wish to develop Themes for your own use or for distribution.

    Why Themes

    Themes are files and styles that work together to create a presentation or look for a site. Each Theme may be different, offering many choices for users to take advantage of in order to instantly change their website look. Why should you build your own Theme?

    A Theme has many benefits, too.

    • It separates the presentation styles and template files from the system files so the site will upgrade without drastic changes to the visual presentation of the site.
    • It allows for customization of the presentation and web results unique to that Theme.
    • It allows for quick changes of the look and feel of a site.
    • It takes away the need for a user to have to learn , HTML, and in order to have a good looking website.

    Why should you build your own Theme? That’s the real question.

    • It’s an opportunity to learn more about , HTML/XHTML, and .
    • It’s an opportunity to put your expertise with , HTML/XHTML, and to work.
    • It’s creative.
    • It’s fun (most of the time).
    • If you release it to the public, you can feel good that you shared and gave something back to the WordPress Community (okay, bragging rights!)

    Anatomy of a Theme

    Themes live in subdirectories residing in wp-content/themes/. The Theme’s subdirectory holds all of the Theme’s style sheet files, template files, an optional functions file (functions.), and images. For example, a Theme named “test” would probably reside in the directory wp-content/themes/test/.

    includes two Themes in the , a “Classic” and “Default” Theme. The two Themes are different and use different functions and tags to generate their web results and looks. Examine the files carefully for these Themes to get a better idea of how to build your own Theme files.

    Themes consist of three main types of files, in addition to images. One is the style sheet called style., which controls the presentation (look) of the web pages. The second is the optional functions file (functions.). The other files are the template files which control the way the web generates the information from the Database to be displayed as a web . Let’s look at these individually.

    Theme Style Sheet

    In addition to style information for your theme, the stylesheet, style. must provide details about the Theme in the form of comments. No two Themes are allowed to have the same details listed in their comment headers, as this will lead to problems in the Theme selection dialog. If you make your own Theme by copying an existing one, make sure you change this information first.

    The following is an example of the first few lines of the stylesheet, called the style sheet header, for the Theme “Rose”:

    /*
    Theme Name: Rose
    Theme URI: the-theme's-homepage
    Description: a-brief-description
    Author: your-name
    Author URI: your-URI
    Template: use-this-to-define-a-parent-theme--optional
    Version: a-number--optional
    .
    General comments/License Statement if any.
    .
    */

    The simplest Theme includes only a style. file, plus images, if any. To create such a Theme, you must specify a set of to inherit for use with the Theme by editing the Template: line in the style. header comments. For example, if you wanted the Theme “Rose” to inherit the from another Theme called “test”, you would include Template: test in the comments at the beginning of Rose’s style.. Now “test” is the parent Theme for “Rose”, which still consists only of a style. file and the concomitant images, all located in the directory wp-content/themes/Rose. (Note that specifying a parent Theme will inherit all of the template files from that Theme — meaning that any template files in the child Theme’s directory will be ignored.)

    The comment header lines in style. are required for to be able to identify a Theme and display it in the Administration Panel under Design > Themes as an available Theme along with any other installed Themes.

    Note : When defining the parent Theme, in the Template: section of the comment header, you must use the name of the directory of the style. For example, to use as parent template the Default Theme, don’t write Template: Default, but Template: default, because default is the directory of this Theme.

    Functions File

    A theme can optionally use a functions file, which resides in the theme subdirectory and is named functions.. This file basically acts like a plugin, and if it is present in the theme you are using, it is automatically loaded during initialization (both for admin pages and external pages). Suggested uses for this file:

    • Define functions used in several template files of your theme
    • Set up an admin screen, giving users options for colors, styles, and other aspects of your theme

    The “Default” theme contains a functions. file that defines functions and an admin screen, so you might want to use it as a model. Since functions. basically functions as a plugin, the Function_Reference is the best place to go for more information on what you can do with this file.

    Theme Template Files

    Templates are source files used to generate the pages requested by . Let’s look at the various that can be defined as part of a Theme.

    allows you to define separate for the various aspects of your weblog; however, it is not essential to have all these different template files for your blog to function fully. are chosen and generated based upon the Template Hierarchy, depending upon what are available in a particular Theme. As a Theme developer, you can choose the amount of customization you want to implement using . For example, as an extreme case, you can use only one template file, called index. as the template for all pages generated and displayed by the weblog. A more common use is to have different template files generate different results, to allow maximum customization.

    Basic

    At the very minimum, a Theme consists of two files:

    Both of these files go into the Theme’s directory. The index. template file is very flexible. It can be used to include all references to the header, sidebar, footer, content, categories, archives, , , and other web pages generated by the user on your site. Or it can be subdivided into modular template files, each one taking on part of the workload. If you do not provide any other template files, will use the built-in default files. For example, if you do not have either a comments. or comments-popup. template file, then will automatically use the wp-comments. and wp-comments-popup. template files using Template Hierarchy. These default may not match your Theme very well, so you probably will want to provide your own. The basic files normally used to subdivide (which go into the Theme’s directory) are:

    Using these modular template files, you can put template tags within the index. master file to include or get these units where you want them to appear in the final generated web .

    Here is an example of the include usage:

    <? get_sidebar(); ?>
    
    <? get_footer(); ?>

    For more on how these various work and how to generate different information within them, read the Templates documentation.

    Query-based

    can load different Templates for different query types. There are two ways to do this: as part of the built-in Template Hierarchy, and through the use of Conditional Tags within The Loop of a template file.

    To use the Template Hierarchy, you basically need to provide special-purpose Template files, which will automatically be used to override index.. For instance, if your Theme provides a template called category. and a category is being queried, category. will be loaded instead of index.. If category. is not present, index. is used as usual.

    You can get even more specific in the Template Hierarchy by providing a file called, for instance, category-6. — this file will be used rather than category. when generating the for the category whose ID number is 6. (You can find category ID numbers in Manage > Categories if you are logged in as the site administrator). For a more detailed look at how this works, see Category Templates.

    If your Theme needs to have even more control over which Template files are used than what is provided in the Template Hierarchy, you can use Conditional Tags. The Conditional Tag basically checks to see if some particular condition is true, within the WordPress Loop, and then you can load a particular template, or put some particular text on the screen, based on that condition.

    For example, to generate a distinctive style sheet in a post only found within a specific category, the might look like this:

    <?
    if (is_category(9)) {
       // looking for category 9 posts
       include(TEMPLATEPATH . '/single2.');
    } else {
       // put this on every other category post
       include(TEMPLATEPATH . '/single1.');
    }
    ?>

    Or, using a query, it might look like this:

    <?
    $post = $wp_query->post;
    if ( in_category('9') ) {
       include(TEMPLATEPATH . '/single2.');
    } else {
       include(TEMPLATEPATH . '/single1.');
    }
    ?>

    In either case, this example will cause different to be used depending on the category of the particular post being displayed. Query conditions are not limited to categories, however — see the Conditional Tags article to look at all the options.

    Media Icons

    This feature is currently broken in WordPress 2.5.

    uses media icons to represent attachment files on your blog and in the Admin interface, if those icons are available.

    It looks for files named by media type in the images directory of the current theme. (As of 2.2, the default theme comes with only one media icon, .jpg.)

    For example, for an attachment of MIME type /mpeg, would look for an icon file at these locations, stopping after the first match (see wp_mime_type_icon):

    1. my_theme/images/.jpg
    2. my_theme/images/.gif
    3. my_theme/images/.png
    4. my_theme/images/mpeg.jpg
    5. my_theme/images/mpeg.gif
    6. my_theme/images/mpeg.png
    7. my_theme/images/audio_mpeg.jpg
    8. my_theme/images/audio_mpeg.gif
    9. my_theme/images/audio_mpeg.png

    Theme Template Files

    Here is the of Theme template files recognized by . Of course, your Theme can contain any other style sheets, images, or files. Just keep in mind that the following have special meaning to — see Template Hierarchy for more information.

    style.
    The main stylesheet. This must be included with your Theme, and it must contain the information header for your Theme.
    index.
    The main template. If your Theme provides its own , index. must be present.
    comments.
    The comments template. If not present, comments. from the “default” Theme is used.
    comments-popup.
    The popup comments template. If not present, comments-popup. from the “default” Theme is used.
    home.
    The home template.
    single.
    The single post template. Used when a single post is queried. For this and all other query , index. is used if the query template is not present.
    .
    The template. Used when an individual Page is queried.
    category.
    The category template. Used when a category is queried.
    author.
    The author template. Used when an author is queried.
    date.
    The date/time template. Used when a date or time is queried. Year, month, day, hour, minute, second.
    archive.
    The archive template. Used when a category, author, or date is queried. Note that this template will be overridden by category., author., and date. for their respective query types.
    .
    The results template. Used when a is performed.
    404.
    The 404 Not Found template. Used when cannot find a post or that matches the query.

    These files have a special meaning with regard to because they are used as a replacement for index., when available, according to the Template Hierarchy, and when the corresponding Conditional Tag (a.k.a is_*(); function) returns true. For example, if only a single post is being displayed, the is_single() function returns ‘true’, and, if there is a single. file in the active Theme, that template is used to generate the .

    Referencing Files From a Template

    The Default Theme (based on Michael Heilemann’s Kubrick layout for 1.2) provides a good example of how queries are mapped onto .

    The <? bloginfo(’template_directory’); ?> inserts the URL of the template directory into the template output. You can append any additional URI information to this output to reference files in your Theme.

    The <? bloginfo(’stylesheet_directory’); ?> inserts the URL of the directory that contains the current Theme stylesheet into the template output. You can append any additional URI information to this output to reference files for your Theme, specifically those that are used by the stylesheet.

    The constant TEMPLATEPATH is a reference to the absolute path to the template directory for the current Theme (without the / at the end).

    Note that URIs that are used in the stylesheet are relative to the stylesheet, not the that references the stylesheet. This obviates the need to include in the file to specify directories. For example, if you include an images/ directory in your Theme, you need only specify this relative directory in the , like so:

    h1 { background-: URL(images/my_background.jpg); }

    It is a good practice to use URIs in the manner described above to reference files from within a template, since, then your template will not depend on absolute paths.

    Defining Custom

    It is possible to use the plugin system to define additional that are shown based on your own custom criteria. This advanced feature can be accomplished using the template_redirect action hook. More information about creating can be found in the Plugin API reference.

    Plugin API Hooks

    When Themes, it’s good to keep in mind that your Theme should be set up so that it can work well with any you (or another Theme user) might decide to install. add functionality to via “Action Hooks” (see Plugin API for more information). Most Action Hooks are within the core of , so your Theme does not have to have any special tags for them to work. But a few Action Hooks do need to be present in your Theme, in order for to display information directly in your header, footer, sidebar, or in the body. Here is a