<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>吓我一跳 &#187; Shortcode API</title>
	<atom:link href="http://digegg.com/article/tag/shortcode-api/feed" rel="self" type="application/rss+xml" />
	<link>http://digegg.com</link>
	<description>分享新鲜，传递快乐</description>
	<lastBuildDate>Tue, 27 Jul 2010 14:43:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>利用WordPress Shortcode API投放Adsense广告</title>
		<link>http://digegg.com/article/581.htm</link>
		<comments>http://digegg.com/article/581.htm#comments</comments>
		<pubDate>Thu, 17 Dec 2009 08:24:10 +0000</pubDate>
		<dc:creator>Yusn</dc:creator>
				<category><![CDATA[使用教程]]></category>
		<category><![CDATA[Google Adsense]]></category>
		<category><![CDATA[Shortcode API]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[广告]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://www.anysns.com/?p=581</guid>
		<description><![CDATA[WordPress从2.5开始新增了一个新特性“Shortcode API”，发现这个“Shortcode API”非常简便、好用，也非常有用，今天来分享一下如何使用“Shortcode API”在Wordpress上投放广告&#8230; 什么是Shortcode API Shortcode API可以用在Wordpress 2.5及以后的版本中，Shortcode API就是事先定义一组的函数，由此生成对应的一个简单的宏代码，这一个宏代码可以在Wordpress的任何地方被使用。来看一个shortcode的实例： [galle] Shortcode API使得创建像支持下面的属性的shortcodes变得非常简单： [galle id="123" size="medium"] API处理了所有形式的解析工作，不需要为每个简码编写正规的的自定义的表达式。API包括Helper函数用来设置和获取默认属性。API支持是自动关闭和被动关闭的简码&#8230; 由于英语水平的限制就不献丑了，具体请参照Wordpress网站上Shortcode API文档 如何使用Shortcode API在Wordpress上投放广告 使用Shortcode API为Wordpress添加Google Adsense广告： 这个标题也可以改成如何“如何使用Shortcode API”，我就用如何投放广告来说明Shortcode API的具体使用实例吧： 以我博客单篇日志下方468×60的Google Adsense广告位来说明： 打开你Wordpress主题文件夹下的functions.php，插入如下代码： function showads() { return &#8216;&#60;div class=&#8221;googleadsense&#8221;&#62;&#60;script type=&#8221;text/javascript&#8221;&#62;&#60;!&#8211;  google_ad_client = &#8220;pub-566526**你的Adsense发布商ID&#8221;;  google_ad_slot = &#8220;1028641669&#8243;;  google_ad_width = 468;  google_ad_height = 60;  //&#8211;&#62; &#60;/script&#62; &#60;script type=&#8221;text/javascript&#8221; src=&#8221;http://pagead2.googlesyndication.com/pagead/show_ads.js&#8220;&#62; &#60;/script&#62;&#60;/div&#62;&#8217;; [...]]]></description>
		<wfw:commentRss>http://digegg.com/article/581.htm/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
