<?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>Web development blog &#187; WordPress</title>
	<atom:link href="http://simplemediacode.info/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://simplemediacode.info</link>
	<description>by Simple Media Code</description>
	<lastBuildDate>Wed, 09 May 2012 12:19:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Optimize WordPress theme stylesheet inclusion</title>
		<link>http://simplemediacode.info/optimize-wordpress-theme-stylesheet-inclusion/</link>
		<comments>http://simplemediacode.info/optimize-wordpress-theme-stylesheet-inclusion/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 09:41:34 +0000</pubDate>
		<dc:creator>umbrovskis</dc:creator>
				<category><![CDATA[WordPress themes]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web page optimization]]></category>
		<category><![CDATA[Websites optimization]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://simplemediacode.info/?p=659</guid>
		<description><![CDATA[Yesterday I was workin on latest project, where I needed to include WordPress Child theme's stylesheet in blog. Following good practise I wanted to escape from using @import in my style.css. By fast research and tests, found way how to optimize that inclusion....]]></description>
			<content:encoded><![CDATA[<p>Yesterday I was workin on latest project, where I needed to include WordPress Child theme&#8217;s stylesheet in blog. Following good practise I wanted to escape from using <em>@import</em> in my style.css. By fast research and tests, found way how to optimize that inclusion (code snippet here: <strong><a title="New way to include WordPress Theme Stylesheet in 2012" href="http://simplemediacode.info/snippets/new-way-to-include-wordpress-theme-stylesheet-in-2012/">New way to include WordPress Theme Stylesheet in 2012</a></strong>).</p>
<p>Today @konstruktors shared link to latest WordPress default theme <em>TwentyTwelve</em>, where style.css is included same way.</p>
<p>I still see space for optimize my code, but nice to see that I am going same way as future release of WordPress Theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://simplemediacode.info/optimize-wordpress-theme-stylesheet-inclusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress theme feature vs. WordPress plugin. What is best?</title>
		<link>http://simplemediacode.info/wordpress-theme-feature-vs-wordpress-plugin-what-is-best-choice/</link>
		<comments>http://simplemediacode.info/wordpress-theme-feature-vs-wordpress-plugin-what-is-best-choice/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 12:20:43 +0000</pubDate>
		<dc:creator>umbrovskis</dc:creator>
				<category><![CDATA[Coding web page]]></category>
		<category><![CDATA[Social network applications and plugins]]></category>
		<category><![CDATA[web applications]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress plugin]]></category>
		<category><![CDATA[WordPress widget]]></category>

		<guid isPermaLink="false">http://simplemediacode.info/?p=197</guid>
		<description><![CDATA[As WordPress developer I came to point where I have to decide: make some functions as WordPress theme features or make them more optional and theme independent as WordPress plugins. Both options have pros and cons....]]></description>
			<content:encoded><![CDATA[<p>As WordPress developer at SimpleMediaCode.com I came to point where I have to decide: <strong>make some functions as WordPress theme features</strong> or <strong>make them more optional and theme independent as <a title="custom WordPress plugin development" href="http://simplemediacode.com/wordpress/" target="_blank">WordPress plugins</a></strong>.</p>
<h2>WordPress plugin coding</h2>
<p>If I create plugin for WordPress theme, I am hardening that, so that this function will make sure, that futures are theme independent, if for some reason someone would like to change WordPress theme. In this case, if function is displaying content for private reading (for membership pages), it will still available in other themes as well.</p>
<p><strong>Pluses by developing WordPress plugin:</strong></p>
<ul>
<li>WordPress theme theme independent,</li>
<li>cross theme usage,</li>
<li>more freedom to turn on and off.</li>
</ul>
<p><strong>Minus(es):</strong></p>
<ul>
<li>harder to implement in theme</li>
</ul>
<h2>WordPress theme feature coding</h2>
<p>But if You are using only one theme for site (custom design for site), I&#8217;m sure You can make functions as features for WordPress theme. This is good for specific placement of information, like sidebars or footer information.</p>
<p><strong>WP theme feature pluses:</strong></p>
<ul>
<li>good support of WordPress theme  hacks and hooks,</li>
<li>compatible with WordPress theme.</li>
</ul>
<p><strong>Minus(es):</strong></p>
<ul>
<li>sometimes theme administrations panel can come with too much options</li>
</ul>
<p>So, before creating WordPress theme options page, think about plugin replacements!</p>
<p>There are many more pros and cons&#8230; <span style="text-decoration: underline">What&#8217;s Yours?</span></p>
]]></content:encoded>
			<wfw:commentRss>http://simplemediacode.info/wordpress-theme-feature-vs-wordpress-plugin-what-is-best-choice/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Final cut for my first WordPress plugin</title>
		<link>http://simplemediacode.info/final-cut-for-my-first-wordpress-plugin/</link>
		<comments>http://simplemediacode.info/final-cut-for-my-first-wordpress-plugin/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 13:17:37 +0000</pubDate>
		<dc:creator>umbrovskis</dc:creator>
				<category><![CDATA[Facebook.com applications and pages]]></category>
		<category><![CDATA[Social network applications and plugins]]></category>
		<category><![CDATA[WordPress plugins and widgets]]></category>
		<category><![CDATA[draugiem.lv]]></category>
		<category><![CDATA[Extending Social networks]]></category>
		<category><![CDATA[FaceBook.com application]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web applications]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress MU]]></category>
		<category><![CDATA[WordPress plugin]]></category>
		<category><![CDATA[WordPress widget]]></category>

		<guid isPermaLink="false">http://simplemediacode.info/?p=112</guid>
		<description><![CDATA[More than one month ago I published my first WordPress plugin "Draugiem.lv/lapas fan page" for social network in Latvia draugiem.lv (FRYPE.COM). And now I want to make final cut with version 1.0 (0.1.5) and upgrade it....]]></description>
			<content:encoded><![CDATA[<p>More than one month ago I published my first WordPress plugin &#8220;<a title="Draugiem.lv/lapas Fan page, WordPress Plugin on MediaBox.lv" href="http://mediabox.lv/en/wordpress-plugins/draugiem-lv-lapas-fan-page/">Draugiem.lv/lapas fan page</a>&#8221; for social network in Latvia draugiem.lv (FRYPE.COM). And now I want to make final cut with version 1.0 (0.1.5) and upgrade it.</p>
<p>For now on my To-Do list:</p>
<ol>
<li>make for widget separate administration page,</li>
<li>rewrite <strong>JSON </strong>parsing script from <strong>Javascript </strong>to <strong>PHP</strong>,</li>
<li>and remove counter* and make it optional.</li>
</ol>
<p>*counter reads ONLY clicks on profile and page links, nothing more</p>
<h2>Next on list</h2>
<p>An <strong>FaceBook.com application for pages and profiles</strong>. Now testing.</p>
<p>Download page for WordPress plugin on WordPress.org <a title="Draugiem.lv/lapas Fan page, WordPress Plugins" href="http://wordpress.org/extend/plugins/draugiemlvlapas-fan-page/">http://wordpress.org/extend/plugins/draugiemlvlapas-fan-page/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://simplemediacode.info/final-cut-for-my-first-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing first public WordPress Plugin (widget)</title>
		<link>http://simplemediacode.info/writing-first-public-wordpress-plugin-widget/</link>
		<comments>http://simplemediacode.info/writing-first-public-wordpress-plugin-widget/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 14:08:13 +0000</pubDate>
		<dc:creator>umbrovskis</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[WordPress plugins and widgets]]></category>
		<category><![CDATA[draugiem.lv]]></category>
		<category><![CDATA[frype]]></category>
		<category><![CDATA[Frype.com]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress MU]]></category>
		<category><![CDATA[WordPress plugin]]></category>
		<category><![CDATA[WordPress widget]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://simplemediacode.info/?p=70</guid>
		<description><![CDATA[Today was first release of  "Draugiem.lv/lapas Fan page" (for non-Latvian draugiem.lv best known as Frype.com) WordPress sidebar widget for FRYPE business pages....]]></description>
			<content:encoded><![CDATA[<p>Today was first release of  &#8220;<strong><a title="Draugiem.lv/lapas Fan page, WordPress Plugins" href="http://wordpress.org/extend/plugins/draugiemlvlapas-fan-page/">Draugiem.lv/lapas Fan page</a></strong>&#8221; (for non-Latvian <em>draugiem.lv</em> best known as <a title="FRYPE" href="http://frype.com"><strong>Frype.com</strong></a>) WordPress sidebar widget for FRYPE business pages.</p>
<h2>About &#8220;<a title="Draugiem.lv/lapas Fan page, WordPress Plugins" href="http://mediabox.lv/en/wordpress-plugins/draugiem-lv-lapas-fan-page/">Draugiem.lv/lapas Fan page</a>&#8221; WordPress widget</h2>
<blockquote>
<p style="text-align: left;">This plugin makes it easy to add <strong>draugiem.lv/lapas (frype.com) fan page</strong> to sidebar of WordPress blog.</p>
</blockquote>
<p>Widget <strong>features</strong>: (<a title="Draugiem.lv/lapas Fan page, WordPress Plugins" href="http://mediabox.lv/en/wordpress-plugins/draugiem-lv-lapas-fan-page/">http://mediabox.lv/en/wordpress-plugins/draugiem-lv-lapas-fan-page/</a>)</p>
<ol>
<li>customizable <strong>widget title</strong>,</li>
<li>customizable <strong>width</strong> (included recommended widths from frype.com),</li>
<li>customizable <strong>user count</strong> in sidebar or possibility turn visibility off,</li>
<li>changeable fan pages URL (e.g. http://draugiem.lv/<strong>umbrovskiscom</strong>),</li>
<li><strong>In Your language</strong>. By default included <span style="text-decoration: underline;">Latvian</span> and <span style="text-decoration: underline;">English</span>.</li>
</ol>
<p>This plugin is mainly written for Latvians <img src='http://simplemediacode.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <a title="Draugiem.lv/lapas Fanu lapa WordPress spraudnis" href="http://mediabox.lv/blog/wordpress/spraudni/draugiem-lv-lapas-fanu-lapa/">http://mediabox.lv/blog/wordpress/spraudni/draugiem-lv-lapas-fanu-lapa/</a></p>
<h2>Changelog</h2>
<ul>
<li>0.1.3 (test for upcoming 0.2) Custom CSS</li>
<li>0.1.1 &amp; 0.1.2 code clean up</li>
<li>0.1 initial release</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://simplemediacode.info/writing-first-public-wordpress-plugin-widget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add Google Buzz button to WordPress and Blogger</title>
		<link>http://simplemediacode.info/how-to-add-google-buzz-button-to-wordpress-and-blogger/</link>
		<comments>http://simplemediacode.info/how-to-add-google-buzz-button-to-wordpress-and-blogger/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 11:49:34 +0000</pubDate>
		<dc:creator>umbrovskis</dc:creator>
				<category><![CDATA[Coding web page]]></category>
		<category><![CDATA[Blogger addons]]></category>
		<category><![CDATA[blogspot.com tip]]></category>
		<category><![CDATA[Google Buzz]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://simplemediacode.info/?p=30</guid>
		<description><![CDATA[Already some days are working Google Buzz. I made short search on Google for possibility to add Google Buzz button to Blogger template. As I didn't find it on first page, I decide to rewrite some of previous Blogspot template code, which I made earlier. And for WordPress blogs too......]]></description>
			<content:encoded><![CDATA[<p>Already some days are working Google Buzz. I made short search on Google for possibility to add Google Buzz button to Blogger template. As I didn&#8217;t find it on first page, I decide to rewrite some of previous Blogspot template code, which I made earlier.</p>
<p><img class="aligncenter size-full wp-image-804" title="google buzz logo" src="http://simplemediacode.info/files/2010/02/google-buzz-logo.png" alt="google buzz logo" width="286" height="68" /></p>
<p style="text-align: center;">
<p>So here it is: (live example: <a title="add Google Buzz button to Blogger template" href="http://mediabox4b.blogspot.com/2010/02/google-buzz-button-in-blogspot-blogger.html">http://mediabox4b.blogspot.com</a>)</p>
<pre class="brush: xml; title: ; notranslate">&lt;a expr:href='&amp;&quot;http://www.google.com/reader/link?url=&amp;quot; + data:post.url + &amp;quot;&amp;amp;title=&amp;&quot; + data:post.title + &amp;quot;&amp;amp;srcTitle=&amp;quot; + data:blog.title+ &amp;quot;&amp;amp;srcURL=&amp;quot; + data:blog.homepageUrl ' rel='nofollow' target='_blank'&gt;+add to Google Buzz&lt;/a&gt;</pre>
<p>put it near data:post.body</p>
<blockquote><p>Made with <a title="Web development, WordPress  freelancer, Blogger templates" href="http://mediabox.lv">MediaBox.lv</a> / <a title="Rolands Umbrovskis" href="http://umbrovskis.com/">Umbrovskis.com</a></p></blockquote>
<p>Where<br />
<strong>url=data:post.url</strong> – post URI,<br />
<strong>title=data:post.title</strong> – post title,<br />
<strong>srcTitle=data:blog.title</strong> – post source, You may also use data:blog.homepageUrl,<br />
<strong>srcURL=data:blog.homepageUrl</strong> – source home page.</p>
<p>And Google Buzz button for WordPress blogs:</p>
<pre class="brush: php; title: ; notranslate">
&lt;a href=&quot;http://www.google.com/reader/link?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&amp;srcTitle=&lt;?php bloginfo('url'); ?&gt;&amp;srcURL=&lt;?php bloginfo('url'); ?&gt;&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;+add to Google Buzz&lt;/a&gt;
</pre>
<p>Put this <span style="text-decoration: underline;">inside</span> <strong>WordPress post loop</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://simplemediacode.info/how-to-add-google-buzz-button-to-wordpress-and-blogger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remove index.html and/or index.php from the URL</title>
		<link>http://simplemediacode.info/remove-index-html-andor-index-php-from-the-url/</link>
		<comments>http://simplemediacode.info/remove-index-html-andor-index-php-from-the-url/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 17:56:40 +0000</pubDate>
		<dc:creator>umbrovskis</dc:creator>
				<category><![CDATA[Coding web page]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[duplicate content]]></category>
		<category><![CDATA[RegEx]]></category>
		<category><![CDATA[RegExp]]></category>
		<category><![CDATA[regular expressions]]></category>
		<category><![CDATA[web applications]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress MU]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://simplemediacode.info/?p=8</guid>
		<description><![CDATA[Inspired by my discussion with Kaspars on his homepage konstruktors.com  how to better remove index file. So I'll post both versions, because they use different methods: with and with out RewriteEngine On....]]></description>
			<content:encoded><![CDATA[<p>Inspired by my discussion with Kaspars on his homepage <a title="Konstruktors" href="http://konstruktors.com/blog/web-design/2036-remove-index-html-from-the-url/">konstruktors.com</a> how to better <strong>remove index file</strong>. So I&#8217;ll post both versions, because they use different methods: <span style="text-decoration: underline">with</span> and <span style="text-decoration: underline">with out</span> <strong>RewriteEngine On</strong>.</p>
<p>Here is mine with <strong>RewriteEngine On</strong> (works on this hosting and both versions of GoDaddy hosting plans <em>example1.com</em> and <em>example1.com</em>/<em>example2.com</em>):</p>
<pre class="brush: bash; title: ; notranslate">
# This will remove index.html AND index.php from URL
RewriteCond %{THE_REQUEST} /index.(php|html) HTTP [NC]
RewriteRule (.*)index.(php|html)$ /$1 [R=301,L]
</pre>
<p>And Kaspar&#8217;s method without <strong>RewriteEngine On</strong>:</p>
<pre class="brush: bash; title: ; notranslate">
RewriteEngine On # remove this, if you have it already
RewriteCond %{REQUEST_URI} index.html
RewriteRule ^(.*)index.html$ /$1/ [R=301,L]
</pre>
<p>Purpose of this is to remove <strong>duplicate content</strong> from Internet.</p>
<p>[<strong>Update</strong> on 2010.03.30]</p>
<p>Please keep in mind that some <strong>web applications</strong> still need <strong>index.php</strong> file for <span style="text-decoration: underline">installation scripts</span> as referrers. So it&#8217;s good to keep it in mind and comment these line during installation process if it fails.</p>
<pre class="brush: bash; title: ; notranslate">
# This will remove index.html AND index.php from URL
# RewriteCond %{THE_REQUEST} /index.(php|html) HTTP [NC]
# RewriteRule (.*)index.(php|html)$ /$1 [R=301,L]
</pre>
]]></content:encoded>
			<wfw:commentRss>http://simplemediacode.info/remove-index-html-andor-index-php-from-the-url/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New development blog for WordPress,BuddyPress, WP MU and Web pages</title>
		<link>http://simplemediacode.info/new-development-blog-for-wordpressbuddypress-wp-mu-and-web-pages/</link>
		<comments>http://simplemediacode.info/new-development-blog-for-wordpressbuddypress-wp-mu-and-web-pages/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 17:21:58 +0000</pubDate>
		<dc:creator>umbrovskis</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress MU]]></category>
		<category><![CDATA[WPMU]]></category>

		<guid isPermaLink="false">http://simplemediacode.info/?p=5</guid>
		<description><![CDATA[Followed by Latvian version, here will be my English blog for web development....]]></description>
			<content:encoded><![CDATA[<p>Followed by <a title="Blogs par mājas lapu izstrādi ar WordPress" href="http://darbi.mediabox.lv/">Latvian web development blog</a> version, here will be my English blog for web, WordPress, BuddyPress and WPMU development.</p>
]]></content:encoded>
			<wfw:commentRss>http://simplemediacode.info/new-development-blog-for-wordpressbuddypress-wp-mu-and-web-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

