<?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>Andreas Hultgren &#187; Wordpress</title>
	<atom:link href="http://andreashultgren.se/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://andreashultgren.se</link>
	<description>Webbdesign, Wordpress, SEO</description>
	<lastBuildDate>Sun, 22 Jan 2012 19:36:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WP JSON Posts</title>
		<link>http://andreashultgren.se/429-wp-json-posts/</link>
		<comments>http://andreashultgren.se/429-wp-json-posts/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 18:58:44 +0000</pubDate>
		<dc:creator>Andreas Hultgren</dc:creator>
				<category><![CDATA[Wordpress Project]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress-plugin]]></category>

		<guid isPermaLink="false">http://andreashultgren.se/?p=429</guid>
		<description><![CDATA[Have you ever wanted to automagically load new post to the bottom of your front page like Twitter do (you might want to look at WP More Posts)? Maybe you want to load some pages with AJAX and display them in a fancy lightbox like I do (try to click on about or contact!)? What [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to automagically load new post to the bottom of your front page like Twitter do (you might want to look at <a title="WP More Posts" href="http://andreashultgren.se/442-wp-more-posts/">WP More Posts</a>)? Maybe you want to load some pages with AJAX and display them in a fancy lightbox like I do (try to click on about or contact!)? What if I say it&#8217;s all possible in WordPress and it&#8217;s really simple?</p>
<p>What WP JSON Posts does is returning any page, post or feed you like as JSON. If you want to load a page into a lightbox you shouldn&#8217;t need to use something else than the actual URL. And that&#8217;s exactly how easy WP JSON Posts is to use. An AJAX request to <code>http://example.com/this-is-my-page?jsonposts=1</code> will give you a JSON representation of that page.</p>
<p>I&#8217;m sure you already got some ideas about how you can implement this in your own theme or plugin. Go ahead and <a href="http://andreashultgren.se/wordpress/wp-content/plugins/download-monitor/download.php?id=2" title="download WP JSON Posts now">download WP JSON Posts now</a>! Otherwise just read on and I&#8217;ll show you just how deep the rabbit&#8230; how much you can accomplish with this WordPress plugin.</p>
<h2>Feature overview:</h2>
<ul>
<li>Get JSON data for any post, page, archive, the front page etc.</li>
<li>It works even for custom posts and taxonomy archives.</li>
<li>And all this are enabled completely automagically.</li>
<li>Choose what data you need.</li>
<li>Customize number of posts and what posts you&#8217;ve already got.</li>
<li>No bloat. No unnecessary functions. You are free to do whatever you want.</li>
<li>It&#8217;s free! Licensed under GPLv3.</li>
</ul>
<p><em>Note: custom queries, page templates and other stuff you put in the template files are ignored. That&#8217;s kinda the definition of this plugin.</em></p>
<h2>What exactly does it do?</h2>
<p>The strength of WP JSON Posts is that it&#8217;s based on WordPress own built in post query. That is, when you visit a certain URL WordPress does some hard work figuring out what you want to see and goes to get those posts. Usually WordPress then applies the correct template, be it single.php or taxonomy-whatever.php. But if WP JSON Posts finds a key named &#8216;jsonposts&#8217;, the theme is swapped for JSON.</p>
<p>As of version 1.0.1 the following data can be returned for each post:</p>
<ul>
<li>ID</li>
<li>the_title</li>
<li>the_content</li>
<ul>
<li>The content already HTML-formatted</li>
</ul>
<li>the_excerpt</li>
<li>the_category</li>
<ul>
<li>An array for every category as an object. The same data as in the WordPress category-object plus the url.</li>
<ul>
<li>cat_ID</li>
<li>cat_name</li>
<li>cat_url</li>
<li>category_count</li>
<li>category_description</li>
<li>category_nicename</li>
<li>category_parent</li>
<li>count</li>
<li>description</li>
<li>name</li>
<li>object_id</li>
<li>parent</li>
<li>slug</li>
<li>taxonomy</li>
<li>term_group</li>
<li>term_id</li>
<li>term_taxonomy_id</li>
</ul>
</ul>
<li>the_date</li>
<ul>
<li>Date formatted as &#8220;2009-06-11 10:58&#8243;. May be subject to change in future updates.</li>
</ul>
<li>the_permalink</li>
<li>the_post_thumbnail</li>
<ul>
<li>Array of image properties:</li>
<ul>
<li>url</li>
<li>width</li>
<li>height</li>
<li>crop (bool)</li>
</ul>
</ul>
</ul>
<h2>There&#8217;s one more thing&#8230;</h2>
<p>Well, four actually. These are the parameters you can send as GET requests to customize what post data that are returned. In summary you could send <code>&amp;exclude=the_content-the_category&amp;number_of_posts=10&amp;offset=10&amp;imgsize=small</code>.</p>
<p>The above data contains pretty much a shitload of data which might be unnecessary. Often you only want the title and the featured image. Thats where the &amp;exclude parameter comes in handy. My plugin expects it to be a dash-separated string of properties to remove. For example <code>&amp;exclude=the_content-the_date-the_category</code> would remove those properties from the returned post objects. Default is to send everything.</p>
<p>Sometimes you don&#8217;t want to get the full normal result of a feed, but only the first couple of posts. For example on the front page of my portfolio I want to get a different number of posts depending on how long the rows are. <code>&amp;number_of_posts=5</code> will take care of this.</p>
<p>The third parameter you may attach is &amp;offset. This is used to specify how many post you&#8217;ve already got, just like WordPress&#8217; own offset parameter. <code>&amp;offset=10</code> would start getting posts at the eleventh post. Default is 0.</p>
<p>Finally you might have to specify what size you want the featured image to be. <code>&amp;imgsize=case</code> would return the image size named &#8220;case&#8221;. Default is &#8220;small&#8221;.</p>
<p>By now I&#8217;m really sure you&#8217;ve got a few ideas how to use this plugin. Why don&#8217;t you <a href="http://andreashultgren.se/wordpress/wp-content/plugins/download-monitor/download.php?id=2" title="download WP JSON Posts now">download WP JSON Posts now</a>? And don&#8217;t hesitate to write some feedback in the comment section below.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreashultgren.se/429-wp-json-posts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>InChina.nu</title>
		<link>http://andreashultgren.se/372-inchina-nu/</link>
		<comments>http://andreashultgren.se/372-inchina-nu/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 22:35:52 +0000</pubDate>
		<dc:creator>Andreas Hultgren</dc:creator>
				<category><![CDATA[Private Project]]></category>
		<category><![CDATA[Lightbox]]></category>
		<category><![CDATA[Slideshow]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://andreashultgren.se/?p=372</guid>
		<description><![CDATA[When studying at Jönköping University we made a study trip to China to learn about cultural differences in graphical design and marketing. Inchina.nu was made do document that trip. As project leader for the web design team i was in charge of the development of the website, making sure it was ready to be filled [...]]]></description>
			<content:encoded><![CDATA[<p>When studying at Jönköping University we made a study trip to China to learn about cultural differences in graphical design and marketing. <a title="Meanwhile in china" href="http://inchina.nu">Inchina.nu</a> was made do document that trip. As project leader for the web design team i was in charge of the development of the website, making sure it was ready to be filled with entries within a week.</p>
<p>In the front end you&#8217;ll find an inspirational slideshow, a video blogg and an image gallery with lightbox enlargement. In the back end there&#8217;s an internal chat, group management and custom image taxonomies. All this with 36 users and three custom user levels in mind.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreashultgren.se/372-inchina-nu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fistulasjukhuset.se</title>
		<link>http://andreashultgren.se/350-fistulasjukhuset-se/</link>
		<comments>http://andreashultgren.se/350-fistulasjukhuset-se/#comments</comments>
		<pubDate>Fri, 25 Mar 2011 16:57:29 +0000</pubDate>
		<dc:creator>Andreas Hultgren</dc:creator>
				<category><![CDATA[Client Project]]></category>
		<category><![CDATA[Lightbox]]></category>
		<category><![CDATA[Slideshow]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://andreashultgren.se/?p=350</guid>
		<description><![CDATA[A website for the Swedish branch of an international womens rights organization, Hamlin Fistula. The talented designer Emelie Palmcrantz made the design for the website and handed it over to me for coding. My main focus was to make it fully editable and easy to maintain by the end user. Special features is the content [...]]]></description>
			<content:encoded><![CDATA[<p>A website for the Swedish branch of an international womens rights organization, Hamlin Fistula. The talented designer <a title="Palmcrantz Design" href="http://pzd.nu">Emelie Palmcrantz</a> made the design for the website and handed it over to me for coding. My main focus was to make it fully editable and easy to maintain by the end user.</p>
<p>Special features is the content slideshow on the front page that is easily edited, and the image lightboxes on some pages for viewing large size images. All this was of course made using <a title="Wordpress" href="http://wordpress.org">WordPress</a>.</p>
<p>Visit <a title="Stiftelsen fistulasjukhuset" href="http://fistulasjukhuset.se">fistulasjukhuset</a> and see it yourself!</p>
]]></content:encoded>
			<wfw:commentRss>http://andreashultgren.se/350-fistulasjukhuset-se/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prakti.se</title>
		<link>http://andreashultgren.se/360-prakti-se/</link>
		<comments>http://andreashultgren.se/360-prakti-se/#comments</comments>
		<pubDate>Sun, 20 Mar 2011 21:03:03 +0000</pubDate>
		<dc:creator>Andreas Hultgren</dc:creator>
				<category><![CDATA[Private Project]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[custom search]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://andreashultgren.se/?p=360</guid>
		<description><![CDATA[This was the great idea originated as a the preceding work for a thesis in University, planned to be thousand-user site, but died from lack of time and resources. The idea was simply to create a platform where students could review their internships, thus encouraging the companies to put some effort into providing a meaningful [...]]]></description>
			<content:encoded><![CDATA[<p>This was the great idea originated as a the preceding work for a thesis in University, planned to be thousand-user site, but died from lack of time and resources. The idea was simply to create a platform where students could review their internships, thus encouraging the companies to put some effort into providing a meaningful internship.</p>
<p>Some noteworthy features are the real-time search, where a user gets suggestions based on existing reviews while typing, and signing in using Facebook connect to avoid the need for creating an account.</p>
<p><a title="Prakti.se" href="http://prakti.se">Prakti</a> was awarded a scholarship for &#8220;best development project&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreashultgren.se/360-prakti-se/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HI TECH.nu</title>
		<link>http://andreashultgren.se/294-hi-tech-nu/</link>
		<comments>http://andreashultgren.se/294-hi-tech-nu/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 22:21:17 +0000</pubDate>
		<dc:creator>Andreas Hultgren</dc:creator>
				<category><![CDATA[Client Project]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.andreashultgren.se/?p=294</guid>
		<description><![CDATA[JTH's studerandesektion HI TECH flyttades till Wordpress och fick sig ett rejält ansiktslyft.

Klar: 2010
Plattform: Wordpress
Url: <a href="http://hitech.nu" title="HI TECH" target="_blank">hitech.nu</a>]]></description>
			<content:encoded><![CDATA[<p><a title="HI TECH" href="http://hitech.nu">HI TECH</a> is the student section on Jönköping School of Engineering whose task is to ensure the quality of programs and courses and to contribute to meaningful study-social activities. As IT Manager of that time in HI TECH I was responsible for keeping the website up to date. Since it was old and underdeveloped I took it upon myself to redesign the website and also port it to <a title="Wordpress" href="http://wordpress.org">WordPress</a>.</p>
<p>Except from design I also created new content, restructured the usable content and added some missing features. For example commenting, an automatic document archive etc. One challenge was to incorporate existing functions from the old CMS into WordPress, which I did using custom built plugins.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreashultgren.se/294-hi-tech-nu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spicetree.se</title>
		<link>http://andreashultgren.se/271-spicetree-se/</link>
		<comments>http://andreashultgren.se/271-spicetree-se/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 09:56:31 +0000</pubDate>
		<dc:creator>Andreas Hultgren</dc:creator>
				<category><![CDATA[Client Project]]></category>
		<category><![CDATA[Lightbox]]></category>
		<category><![CDATA[Slideshow]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.andreashultgren.se/?p=271</guid>
		<description><![CDATA[Emelie Palmcrantz hade en jättesnygg design till The Spice Tree, vilka ville kunna uppdatera innehållet själva. Den CMS som ansågs bäst för detta var naturligtvis WordPress. Och utvecklaren som ansågs vara bäst för att koda hemsidan var jag.

Klar: 2010
Plattform: Wordpress
Url: <a href="http://spicetree.se" target="_blank">spicetree.se</a>]]></description>
			<content:encoded><![CDATA[<p><a title="Palmcrantz Design" href="http://palmcrantzdesign.com">Emelie Palmcrantz</a> had a great design for <a title="the Spice Tree" href="http://spicetree.se">The Spice Tree</a>&#8216;s new website, who wanted to be able to update it themselves. I was chosen to code it using the CMS WordPress. Interactivity was important to The Spice Tree. Amongst other things you are greeted by a large inspiring slideshow on the front page, a lightbox that enhances the product photos and contact information available on every page.</p>
<p>To make the content easily updated, &#8220;custom post types&#8221; were used heavily. They are used to difference between different kind of content, e.g. products and articles, make each as easy to update as a Word document. Since I&#8217;m a friend of availability, all features are still working even if JavaScript is disabled.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreashultgren.se/271-spicetree-se/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Häståkeriet.se</title>
		<link>http://andreashultgren.se/268-hastakeriet-se/</link>
		<comments>http://andreashultgren.se/268-hastakeriet-se/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 12:53:52 +0000</pubDate>
		<dc:creator>Andreas Hultgren</dc:creator>
				<category><![CDATA[Client Project]]></category>
		<category><![CDATA[Custom post types]]></category>
		<category><![CDATA[Slideshow]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.andreashultgren.se/?p=268</guid>
		<description><![CDATA[Mitt uppdrag var dels att göra en ny design till hemsidan, dels att flytta över allt innehåll från det gamla html-baserade systemet till WordPress. Resultatet blev som ni ser en användarvänlig, lättnavigerad och aktuell hemsida.

Klar: 2010
Plattform: Wordpress
Url: <a href="http://hastakeriet.se" target="_blank">Hastakeriet.se</a>]]></description>
			<content:encoded><![CDATA[<p><a title="Turridning i Stockholm" href="http://hastakeriet.se">Häståkeriet</a> had an old and outdated website that was hard to navigate and impossible to keep updated. My task was not only to create and code a new design, but also to transfer the content to WordPress to make it easier to update and to restructure the content and navigation to make it more intuitive to navigate.</p>
<p>The most prominent change design-wise is that I put a lot more images on the front page to immediately convey what services Häståkeriet offers. Another feature is the custom made calendar that shows when the activities occur.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreashultgren.se/268-hastakeriet-se/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple Calendar WordPress plugin</title>
		<link>http://andreashultgren.se/240-simple-calendar-wordpress-plugin/</link>
		<comments>http://andreashultgren.se/240-simple-calendar-wordpress-plugin/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 20:31:40 +0000</pubDate>
		<dc:creator>Andreas Hultgren</dc:creator>
				<category><![CDATA[Wordpress Project]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[kalender]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress-plugin]]></category>

		<guid isPermaLink="false">http://www.andreashultgren.se/?p=240</guid>
		<description><![CDATA[Simple Calendar allows you to add, manage and show events on your blog in a really simple way. The goal was to make a calendar plugin that doesn&#8217;t requires endless setup or 10 minutes for every event you add. I know there are more advanced plugins that offer full customization and advanced layouts. Simple Calendar [...]]]></description>
			<content:encoded><![CDATA[<p>Simple Calendar allows you to add, manage and show events on your blog in a really simple way. The goal was to make a calendar plugin that doesn&#8217;t requires endless setup or 10 minutes for every event you add. I know there are more advanced plugins that offer full customization and advanced layouts. Simple Calendar will not give you that. Simple Calendar was made to be simple. It&#8217;s as simple as that.</p>
<p>Go ahead and <a title="Simple Calendar for WordPress" href="http://andreashultgren.se/wordpress/wp-content/uploads/simple-calendar.zip">download Simple Calendar</a> now! Or continue reading about the features.<span id="more-240"></span></p>
<ul class="postnav">
<li><a href="#why">Why should I use Simple Calendar</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#localization">Localization</a></li>
<li><a href="#how">How to use Simple Calendar </a>
<ul>
<li><a href="#parameters">Parameters</a></li>
<li><a href="#syntax">Syntax</a></li>
<li><a href="#examples">Examples</a></li>
</ul>
</li>
<li><a href="#changelog">Changelog</a></li>
</ul>
<h2 id="why">Why should I use Simple Calendar?</h2>
<p>Are you looking for a calendar plugin that is actually usable? A plugin that doesn&#8217;t try to cram in every imaginable feature in a too cluttered interface? Do you want nothing more than to add an event on a certain date and time, and then it&#8217;s done?</p>
<p>If so, the Simple Calendar WordPress plugin is made for you. Simple Calendar was created to make it as easy as possible to add events to a calendar and show them on your blog. By default you may simply use the widget to show upcoming events. If you&#8217;re more into programming you can use call the function ahsc_show_events($args) as described below.</p>
<h2 id="features">Features</h2>
<ul>
<li>A really simple interface for adding events</li>
<li>A widget listing upcoming events</li>
<li>Internationalization</li>
<li>Possible to show events on a single page</li>
</ul>
<h2 id="localization">Localization</h2>
<p>Simple Calendar fully supports localization. Simple Calendar is currently translated to the following languages:</p>
<ul>
<li>(Swedish is coming)</li>
</ul>
<p>If you have made a translation, you&#8217;re free to send me an email and you will be featured as a contributor and listed on this page.</p>
<p><em>Note: the POT file is coming as soon as the plugin is accepted into the WordPress</em> plugin respiratory</p>
<h2 id="how">How to use Simple Calendar</h2>
<p>For use in e.g. a sidebar there is a widget that shows upcoming events. Just drag it to where you want it, chose a title and number of events to show and you&#8217;re done! If you are displaying all events on a single page you may also want to paste the url in last field.</p>
<p>If you want to show the calendar on any page, just write &lt;?php echo ahsc_show_events($args); ?&gt; in a template file.</p>
<h3 id="parameters">Parameters in ahsc_show_events()</h3>
<p>The following is a list of parameters and values allowed when calling the ahsc_show_events() function.</p>
<ul>
<li><strong>before_list<br />
</strong><em>Default: &lt;ul class=&#8221;ahsc_calendar&#8221;&gt;<br />
</em>Usage: What should be written before the list of events</li>
<li><strong>after_list</strong><strong><br />
</strong><em>Default: &lt;/ul&gt;<br />
</em>Usage: What should be written after the list of events.</li>
<li><strong>before_event</strong><strong><br />
</strong><em>Default: &lt;li&gt;<br />
</em>Usage: What should be written before each event.</li>
<li><strong>after_event</strong><strong><br />
</strong><em>Default: &lt;/li&gt;<br />
</em>Usage: What should be written after each event.</li>
<li><strong>before_event_title</strong><strong><br />
</strong><em>Default: &lt;h4&gt;<br />
</em>Usage: What should be written before the title of each event.</li>
<li><strong>after_event_title</strong><strong><br />
</strong><em>Default: &lt;/h4&gt;<br />
</em>Usage: What should be written after the title of each event</li>
<li><strong>before_event_date</strong><strong><br />
</strong><em>Default: &lt;span class=&#8221;date&#8221;&gt;<br />
</em>Usage: What should be written before the date of each event.</li>
<li><strong>after_event_date</strong><strong><br />
</strong><em>Default: &lt;/span&gt;<br />
</em>Usage: What should be written after the date of each event.</li>
<li><strong>before_event_desc</strong><strong><br />
</strong><em>Default: none<br />
</em>Usage: What should be written before the content of each event.</li>
<li><strong>after_event_desc</strong><strong><br />
</strong><em>Default: none<br />
</em>Usage: What should be written after the content of each event.</li>
<li><strong>begin</strong><strong><br />
</strong><em>Default: current_date()<br />
</em>Usage: The oldest date any returned event may occur on.<br />
Allowed values: date formatted as YYYY-MM-DD or &#8216;current_date()&#8217;.</li>
<li><strong>end</strong><strong><br />
</strong><em>Default: 2100-01-01<br />
</em>Usage: Events may occur on any date before, but not including, this date.<br />
Allowed values: date formatted as YYYY-MM-DD or &#8216;current_date()&#8217;.</li>
<li><strong>number</strong><strong><br />
</strong><em>Default: 5<br />
</em>Usage: Maximum number of events to be shown.<br />
Allowed values: any integer. 0 (zero) will return unlimited number of events.</li>
<li><strong>order</strong><strong><br />
</strong><em>Default: ASC<br />
</em>Usage: In which order the events should be sorted in.<br />
Allowed values: ASC or DESC</li>
<li><strong>orderby</strong><strong><br />
</strong><em>Default: &#8216;Begin&#8217;<br />
</em>Usage: Which column the events should be sorted by.<br />
Allowed values: Id, Begin, Begin_time</li>
</ul>
<h3 id="syntax">Parameters syntax</h3>
<p>The syntax for the parameters is based on the wp_parse_args() function which means you add arguments in the same way as in for example a query_string().</p>
<p>&lt;?php echo ahsc_show_events(&#8216;number=10&amp;order=DESC&#8217;); ?&gt;</p>
<p><em>Please note that the parameters currently are NOT sql-escaped (because I see no security issue as long as the plugin is used as intended). Thus, if you use data in the parameters sent by a user, make sure the input is secure.</em></p>
<h3 id="examples">Examples</h3>
<p>Show a list of all events that occurred in the past:</p>
<p>&lt;?php echo ahsc_show_events(&#8216;number=0&amp;begin=2000-01-01&amp;end=current_date()&amp;order=DESC&#8217;); ?&gt;</p>
<p>Show today&#8217;s events (not actually tested):</p>
<pre>&lt;?php
    $args = 'end=' . date('Y-m-d',strtotime('+1 day'));
    echo ahsc_show_events($args);
?&gt;</pre>
<p>Show upcoming events with h2 instead of h4 headers:</p>
<p>&lt;?php echo ahsc_show_events(&#8216;before_event_title=&lt;h2&gt;&amp;after_event_title=&lt;/h2&gt;&#8217;); ?&gt;</p>
<h2 id="changelog">Changelog</h2>
<p><strong>0.20</strong> The first public release</p>
<p><a title="Simple Calendar for WordPress" href="http://andreashultgren.se/wordpress/wp-content/uploads/simple-calendar.zip">Download Simple Calendar Now</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://andreashultgren.se/240-simple-calendar-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wattenkungen.se</title>
		<link>http://andreashultgren.se/154-wattenkungen-se/</link>
		<comments>http://andreashultgren.se/154-wattenkungen-se/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 20:17:19 +0000</pubDate>
		<dc:creator>Andreas Hultgren</dc:creator>
				<category><![CDATA[Client Project]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[modxcms]]></category>
		<category><![CDATA[template variables]]></category>
		<category><![CDATA[wattenkungen]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://thewebhunter.se/?p=134</guid>
		<description><![CDATA[Klar: 2010
Plattform: modXCMS
Url: www.wattenkungen.se]]></description>
			<content:encoded><![CDATA[<p>Lite inspirerad av <a title="Antonio på Grafix studio" href="http://grafixstudio.se">Grafix Studio</a>s inlägg om hur han har skapat några hemsidor tänkte jag att jag skulle dela med mig av mitt senaste projekt. Eventuellt kan det komma att bli en återkommande företeelse. Wattenkungen.se var ett för min del lite ovanligt projekt. T.ex. jobbade jag inte med WordPress som jag är van vid utan med Modxcms. Dessutom hade dom redan en design de ville att jag skulle göra om till en fungerande hemsida.</p>
<h2>Modxcms</h2>
<p>Wattenkungen ville ha hemsidan i modxcms, en cms (Content Management System) jag aldrig hade hört talas om tidigare. Jag var en aning skeptisk till en början eftersom den jag inte hade arbetat med modx och av att döma från informationen på deras hemsida verkade den ganska knepig. Efter att ha testat modxcms blev jag dock positivt överraskad. Det tog bara någon timme att sätta mig in i hur modx fungerade och hur man använder snippets, templates etc.</p>
<p>Jag måste erkänna moxcms hade sina fördelar, men vissa brister var extremt irriterande för en van WordPress-användare som mig. T.ex. kan man inte köra php direkt i template-filen (jag listade i alla fall inte ut hur man gjorde på den korta tiden jag provade), vilket jag inte för mitt liv kan förstå orsaken till. Hanteringen av s.k. Template Variables var dock extremt smidig och är en funktion som jag gärna skulle se implementerad i WordPress.</p>
<h2>Template Variables</h2>
<p>Samtliga sidor på wattenkungen.se består av minst tre separata innehållsområden som användaren (kunden) ska kunna ändra utan att kunna någon kod, som mest fanns det sex sidor (dock ej publicerad i skrivande stund). Att lösa detta i WordPress hade varit i det närmaste omöjligt och hade krävt antingen missbruk av widgets, krånglig implementering av css för olika stycken, en specialgjord plugin eller Custom Fields. I modx var dock detta enkelt gjort med hjälp av Template Variables. Template Variables motsvarighet i WordPress är Custom Fields, med den skillnaden att det är hur enkelt som helst att använda i modx. Bara att bestämma vilka variabler av vilken typ som ska visas för varje template och börja skriva.</p>
<h2>Design</h2>
<p>Min uppgift var att implementera en befintlig design i modxcms. Jag fick designen levererad till mig i form av en psd ur vilken jag klippte ut logotyp, bakgrundsbilder och andra element. Därpå följde arbetet att göra en html-mall av det hela för att sedan lägga in kod för de delar som skulle styras av WordPress. Jag installerade allt på min lokala testserver och såg till så att allt fungerade innan jag exporterade till live.sidan. Wattenkungen skapade allt innehåll och publicerade mesta av det själva.</p>
<h2>CSS3</h2>
<p>Efersom CSS3 ännu inte är standard enligt w3c har jag inte provat det så mycket ännu. I och med det här projektet fick jag dock tillfälle att lära mig några nya CSS-tekniker, t.ex. @font-face och text-shadow. Att se till att hemsidan ändå går att se i samtliga webbläsare har ändå varit  högsta prioritet.</p>
<p>Jag tackar Wattenkungen för den här gången och ser mig om efter nya utmaningar. (det ryktas om att jag snart släpper en ny sajt)</p>
]]></content:encoded>
			<wfw:commentRss>http://andreashultgren.se/154-wattenkungen-se/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress-blogg hos one.com</title>
		<link>http://andreashultgren.se/120-wordpress-blogg-one-com/</link>
		<comments>http://andreashultgren.se/120-wordpress-blogg-one-com/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 06:02:01 +0000</pubDate>
		<dc:creator>Andreas Hultgren</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[one.com]]></category>
		<category><![CDATA[webbhotell]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wordpress-blogg]]></category>

		<guid isPermaLink="false">http://thewebhunter.se/?p=120</guid>
		<description><![CDATA[One.com är ett billigt och enkelt webbhotell som jag ofta rekommenderat till dem som letar webbhotell. Nu har det dock visat sig att det låga priset har sina nackdelar. Nedan förklarar jag varför jag inte längre rekommenderar one.com som webbhotell för WordPress-baserade hemsidor. Hittills har jag varit en av få webbdesigners som vågat erkänna att one.com [...]]]></description>
			<content:encoded><![CDATA[<p>One.com är ett billigt och enkelt webbhotell som jag ofta rekommenderat till dem som letar webbhotell. Nu har det dock visat sig att det låga priset har sina nackdelar. Nedan förklarar jag varför jag inte längre rekommenderar one.com som webbhotell för WordPress-baserade hemsidor.</p>
<p>Hittills har jag varit en av få webbdesigners som vågat erkänna att <a title="Hosta inte en WordPress-blogg hos one.com" href="http://one.com">one.com</a> faktiskt var ett bra webbhotell att hosta sin webbsida hos. Detta tips har dock varit riktat främst mot dem som har en mindre seriös hemsida eller blogg och räknar med max 100 besökare om dagen. Om man har en kommersiell sajt på 100-tals sidor med flera tusen besökare om dagen har man råd att betala för ett riktigt webbhotell.</p>
<p>Med det sagt måste jag dock säga att jag på senare tid har fått anledning att ändra åsikt. Visst är one.com fortfarande det billigaste och enklaste webbhotellet, det har inte ändrats. Det är bara det att WordPress inte längre fungerar på one.com. Efter lite efterforskning kom jag fram till att det berodde på att one.com har för lite minne tilldelat per hemsida. Jag har pratat med supporten på one.com och fått beskedet att de inte kan göra något åt detta just nu.</p>
<p>Att säga att det inte fungerar är kanske en överdrift. Lyckas du installera WordPress så är allt bra. Men räkna med att det inte kommer att fungera att uppdatera WordPress automatiskt eller ens manuellt. Det kan också uppstå problem om du har för många eller väldigt krävande plugins.</p>
<p title="loopia">Tyvärr känner jag inte till några riktigt <a title="TKJ om webbhotell för wordpress" href="http://blogg.tkj.se/webbhotell-wordpress/">bra alternativ</a>. Jag har dåliga erfarenheter av andra webbhotell i samma prisklass, t.ex. web10 och surftown. <a title="Binero" href="http://binero.se">Binero</a> är en smula dyrare men så mycket bättre att de två inte går att jämföra.</p>
]]></content:encoded>
			<wfw:commentRss>http://andreashultgren.se/120-wordpress-blogg-one-com/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

