<?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>Veronica Wong &#187; Wordpress</title>
	<atom:link href="http://veronicawong.ca/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://veronicawong.ca</link>
	<description></description>
	<lastBuildDate>Thu, 17 Nov 2011 17:20:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>WordPress: Different Number of Posts per Page</title>
		<link>http://veronicawong.ca/2009/10/wordpress-different-number-of-posts-per-page/</link>
		<comments>http://veronicawong.ca/2009/10/wordpress-different-number-of-posts-per-page/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 07:53:06 +0000</pubDate>
		<dc:creator>Veronica Wong</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://veronicawong.ca/?p=751</guid>
		<description><![CDATA[WordPress allows you to set the number of posts to display on each blog page, but it does not allow you to set a different number of posts between different blog pages. A recent job of mine required me to do so and I found a couple of ways to do it. I first found [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wordpress.org" target="_blank">WordPress</a> allows you to set the number of posts to display on each blog page, but it does not allow you to set a different number of posts between <em>different blog pages</em>. A recent job of mine required me to do so and I found a couple of ways to do it.</p>
<p><span id="more-751"></span><br />
I first found the Different Posts Per Page plugin. Now, before I ever even think of installing a plugin, I read through the WordPress forums to see whether or not it would be suitable for me. <strong>Several users complained that the author of this particular plugin made them register their email address and say yes to a newsletter in order to use the plugin.</strong> I found this to be extremely annoying and didn&#8217;t even bother installing the plugin. I ended up doing a bit more reading and found that a simple line of code would solve my problem!</p>
<p>I simply had to run a <a href="http://codex.wordpress.org/Template_Tags/query_posts" target="_blank">query </a>before the WordPress loop:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php query_posts($query_string.'&amp;posts_per_page=50'); ?&gt;</pre>
<p>The above query allowed me to show 50 posts on that specific blog page, while all the others maintained the default of 10 posts per page. If I wanted to show <em>all</em> posts, I would simply replace <strong>50</strong> with <strong>-1</strong>. </p>
]]></content:encoded>
			<wfw:commentRss>http://veronicawong.ca/2009/10/wordpress-different-number-of-posts-per-page/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Twitter News Ticker for WordPress</title>
		<link>http://veronicawong.ca/2009/06/twitter-news-ticker-for-wordpress/</link>
		<comments>http://veronicawong.ca/2009/06/twitter-news-ticker-for-wordpress/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 00:47:13 +0000</pubDate>
		<dc:creator>Veronica Wong</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://veronicawong.ca/?p=578</guid>
		<description><![CDATA[Over the last few years, Twitter has become a very popular marketing tool and more and more people are integrating their Twitter updates onto sites outside of Twitter. This tutorial will teach you how to display up to 20 of your latest Twitter updates in a fading news ticker on your WordPress blog. This is [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last few years, Twitter has become a very popular marketing tool and more and more people are integrating their Twitter updates onto sites outside of Twitter. This tutorial will teach you how to display up to 20 of your latest Twitter updates in a fading news ticker on your WordPress blog. This is an elegant alternative to using a Twitter Badge and takes up little room on your site.</p>
<p><span id="more-578"></span><a href="http://www.texotela.co.uk/code/jquery/newsticker/" target="_blank">View demo of a news ticker at TexoTela</a></p>
<h4>What we need</h4>
<ul>
<li><a href="http://jquery.com/" target="_blank">jQuery</a></li>
<li><a href="http://www.texotela.co.uk/code/jquery/newsticker/" target="_blank">Newsticker jQuery plugin</a></li>
<li><a href="http://rick.jinlabs.com/code/twitter/" target="_blank">Twitter for WordPress plugin</a></li>
</ul>
<h4>Install Twitter for WordPress</h4>
<ol>
<li>Download the WordPress plugin from <a href="http://rick.jinlabs.com/code/twitter/" target="_blank">Rick&#8217;s HideOut</a> then upload the entire folder to your wp-content/plugins folder in your WordPress directory.</li>
<li>Login to your WordPress admin panel, and go to the Plugins section. Click on <strong>Activate</strong> next to the Twitter for WordPress plugin.</li>
</ol>
<h4>Download the jQuery files</h4>
<p>Download the latest version of <a href="http://jquery.com/" target="_blank">jQuery</a> and the <a href="http://www.texotela.co.uk/code/jquery/newsticker/" target="_blank">newsticker plugin</a>. Upload both these files to your web server.</p>
<h4>The Markup</h4>
<p>In your <strong>head</strong> section, we need to call jQuery as well as the newsticker plugin using the following lines of code:</p>
<pre class="brush: xml; title: ; notranslate">&lt;script type=&quot;text/javascript&quot; src=&quot;jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.newsticker.js&quot;&gt;&lt;/script&gt;</pre>
<p>Following that, we will need the following lines of javascript to implement the newsticker plugin:</p>
<pre class="brush: xml; title: ; notranslate">&lt;script type='text/javascript'&gt;
	$(document).ready(function(){
		$(&quot;#twitter-feed ul&quot;).newsticker();
	});
&lt;/script&gt;</pre>
<p>This applies the newsticker to the unordered list that will be created within our  #twitter-feed div.</p>
<p>The next step is to create the div in which our news feed will show up. Paste the following code where you want the news ticker to appear:</p>
<pre class="brush: xml; title: ; notranslate">&lt;div id=&quot;twitter-feed&quot;&gt;
	&lt;?php twitter_messages('username', [msgs], [list]); ?&gt;
&lt;/div&gt;</pre>
<p>The line of PHP in the above code calls the Twitter for WordPress plugin with the following parameters:</p>
<ul>
<li><strong>username:</strong> Replace this with your twitter username</li>
<li><strong>[msgs]:</strong> The number of tweets to show (max 20, limited by Twitter)</li>
<li><strong>[list]:</strong> Whether or not to show tweets in an unordered list</li>
</ul>
<p>For example, in order to show the last 10 tweets in an unordered list:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php twitter_messages('username', 10, true); ?&gt;</pre>
<p>It is important that we set [list] to <strong>true</strong> because the newsticker script takes each list item as a &#8220;news item&#8221;. </p>
<p>There are other options for the Twitter for WordPress plugin, which you can read about at <a href="http://rick.jinlabs.com/code/twitter/" target="_blank">Rick&#8217;s HideOut</a>, but those parameters are not required for this tutorial. </p>
<h4>The CSS</h4>
<p>The last step is to add  little CSS to our feed div to give the ticker some personality:</p>
<pre class="brush: css; title: ; notranslate">#twitter-feed{
	list-style-type: none;
	border: 1px solid #3a78b8;
	background: #d7e6f5;
	padding: 3px;
	margin: 0;
	font: 12px helvetica, arial, tahoma, sans-serif;
	}</pre>
<h4>That&#8217;s It!</h4>
<p>As you can see, this was a very simple tutorial. Additionally, this was my first time writing a tutorial so any comments you have would be greatly appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://veronicawong.ca/2009/06/twitter-news-ticker-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>

