<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: additional code in sidebar move sidebar to the bottom of the page</title>
		<link>http://www.kriesi.at/support/topic/additional-code-in-sidebar-move-sidebar-to-the-bottom-of-the-page</link>
		<description>Support Forum - Topic: additional code in sidebar move sidebar to the bottom of the page</description>
		<language>en-US</language>
		<pubDate>Sun, 26 May 2013 04:25:52 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/additional-code-in-sidebar-move-sidebar-to-the-bottom-of-the-page" rel="self" type="application/rss+xml" />

		<item>
			<title>James Morrison on "additional code in sidebar move sidebar to the bottom of the page"</title>
			<link>http://www.kriesi.at/support/topic/additional-code-in-sidebar-move-sidebar-to-the-bottom-of-the-page#post-1826</link>
			<pubDate>Tue, 03 Aug 2010 14:11:55 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">1826@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;This article is a good place to start in creating a widget: &#60;a href=&#34;http://justintadlock.com/archives/2009/05/26/the-complete-guide-to-creating-widgets-in-wordpress-28&#34; rel=&#34;nofollow&#34;&#62;http://justintadlock.com/archives/2009/05/26/the-complete-guide-to-creating-widgets-in-wordpress-28&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The code you posted in the opening post can be used as a function, take out the opening:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;if (is_single()) {&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;and closing&#60;/p&#62;
&#60;p&#62;&#60;code&#62;}&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;If you want to restrict the pages the widget appears on, you can select the appropriate widget area to add this to, or you can use the &#60;a href=&#34;http://wordpress.org/extend/plugins/widget-logic/&#34;&#62;Widget Logic&#60;/a&#62; plugin for more precise control.&#60;/p&#62;
&#60;p&#62;Let me know how you get on.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>signreader on "additional code in sidebar move sidebar to the bottom of the page"</title>
			<link>http://www.kriesi.at/support/topic/additional-code-in-sidebar-move-sidebar-to-the-bottom-of-the-page#post-1800</link>
			<pubDate>Tue, 03 Aug 2010 12:28:46 +0000</pubDate>
			<dc:creator>signreader</dc:creator>
			<guid isPermaLink="false">1800@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thank you James for your advice. You are right, i see it now, the code is not inside the sidebar container.&#60;/p&#62;
&#60;p&#62;Turn the code in a widget seems a good move but how should i do it?.&#60;br /&#62;
So much as i know a widget can, same as normal posts or page, not execute php-code for security reasons.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>James Morrison on "additional code in sidebar move sidebar to the bottom of the page"</title>
			<link>http://www.kriesi.at/support/topic/additional-code-in-sidebar-move-sidebar-to-the-bottom-of-the-page#post-1648</link>
			<pubDate>Sun, 01 Aug 2010 15:57:54 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">1648@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;The code you've added doesn't have a container specifying a width and doesn't specify a width itself. It's also not within the sidebar area so it won't inherit the styles.&#60;/p&#62;
&#60;p&#62;I suggest turning your code above into a widget and adding it under WP Admin -&#38;gt; Appearance -&#38;gt; Widgets to position it correctly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>signreader on "additional code in sidebar move sidebar to the bottom of the page"</title>
			<link>http://www.kriesi.at/support/topic/additional-code-in-sidebar-move-sidebar-to-the-bottom-of-the-page#post-1580</link>
			<pubDate>Sat, 31 Jul 2010 07:59:16 +0000</pubDate>
			<dc:creator>signreader</dc:creator>
			<guid isPermaLink="false">1580@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I forget, URL to view:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.ibepa.de/blog/20090124/encyclopaedia-britannica-online-wird-mit-wikipedia-konkurrieren.htm&#34; rel=&#34;nofollow&#34;&#62;http://www.ibepa.de/blog/20090124/encyclopaedia-britannica-online-wird-mit-wikipedia-konkurrieren.htm&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;(It's only a test domain)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>signreader on "additional code in sidebar move sidebar to the bottom of the page"</title>
			<link>http://www.kriesi.at/support/topic/additional-code-in-sidebar-move-sidebar-to-the-bottom-of-the-page#post-1522</link>
			<pubDate>Fri, 30 Jul 2010 15:48:40 +0000</pubDate>
			<dc:creator>signreader</dc:creator>
			<guid isPermaLink="false">1522@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;hello everyone,&#60;/p&#62;
&#60;p&#62;ich wish to have additional links in the sidebar (left): on every single page i will show some links to posts from this categorie. i believe this is for better user expirience and better linking for sites from single.php.&#60;/p&#62;
&#60;p&#62;So i searched for this code, which works fine for me. copied from this page &#60;a href=&#34;http://www.galuba.net/?p=1684&#34; rel=&#34;nofollow&#34;&#62;http://www.galuba.net/?p=1684&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
if (is_single()) {
    global $post;
    $categories = get_the_category();
    foreach ($categories as $category) :?&#38;gt;
        &#38;lt;div class=&#38;#39;box box_small&#38;#39;&#38;gt;
            &#38;lt;h3&#38;gt;Artikel aus dieser Kategorie&#38;lt;/h3&#38;gt;

&#38;lt;ul&#38;gt;
                &#38;lt;?php
                $posts = get_posts(&#38;#39;numberposts=5&#38;amp;category=&#38;#39;. $category-&#38;gt;term_id);
                foreach($posts as $post) : ?&#38;gt;

&#38;lt;li&#38;gt;&#38;lt;a&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;
                &#38;lt;?php
                endforeach;
                ?&#38;gt;

&#38;lt;li&#38;gt;&#38;lt;strong&#38;gt;&#38;lt;a&#38;gt;term_id);?&#38;gt;&#38;quot; title=&#38;quot;Zeige alle Artikel der Kategorie &#38;lt;?php echo $category-&#38;gt;name; ?&#38;gt;&#38;quot;&#38;gt;Zeige alle Artikel der Kategorie &#38;lt;?php echo $category-&#38;gt;name; ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/strong&#38;gt;&#38;lt;/li&#38;gt;
            &#38;lt;?php
            endforeach;
            ?&#38;gt;
        &#38;lt;/ul&#38;gt;
    &#38;lt;/div&#38;gt;
&#38;lt;?php
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The only problem, the whole sidebar moved to the bottom of the articles, before footer. the sidebar is no longer at the right site.&#60;br /&#62;
I copied the code bevor every other code, at row 1 in sidebar.php, because i wish to have this code, even when i use some widgets.&#60;br /&#62;
Any suggestions?  Thank you for your support.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
