<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<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>Wordpress and Webdesign Forum go41 &#187; Topic: Change language and category display</title>
		<link>http://forum.go41.de/topic/change-language-and-category-display</link>
		<description>How To, tips, php and css code for your WordPress site</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 21:59:05 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://forum.go41.de/rss/topic/change-language-and-category-display" rel="self" type="application/rss+xml" />

		<item>
			<title>Miklo on "Change language and category display"</title>
			<link>http://forum.go41.de/topic/change-language-and-category-display#post-93</link>
			<pubDate>Wed, 16 Dec 2009 17:59:27 +0000</pubDate>
			<dc:creator>Miklo</dc:creator>
			<guid isPermaLink="false">93@http://forum.go41.de/</guid>
			<description><![CDATA[<p>Perfect! What else can I say. Terrific help!
</p>]]></description>
					</item>
		<item>
			<title>Joern on "Change language and category display"</title>
			<link>http://forum.go41.de/topic/change-language-and-category-display#post-92</link>
			<pubDate>Wed, 16 Dec 2009 17:49:56 +0000</pubDate>
			<dc:creator>Joern</dc:creator>
			<guid isPermaLink="false">92@http://forum.go41.de/</guid>
			<description><![CDATA[<p>I see - you create a mix of arthemia and Arthemix.</p>
<p>to get rid of the two wide posts before the side by side ones, you have to delete something in index.php</p>
<p>Start after this line and keep this line:<br />
<pre><code>&#60;?php if ( $paged &#60; 2 ) { ?&#62;</code></pre>
<p>what you delete is from here (if post one and post two..) :<br />
<pre><code>&#60;?php if (($i == 1) &#124;&#124; ($i == 2)) { ?&#62;
...
&#60;/div&#62;&#60;?php $i++; ?&#62;</code></pre>
<p>Now comes this WHAT YOU MODIFY:<br />
<pre><code>&#60;?php } else { ?&#62;
&#60;?php if( $odd = $i%2 )</code></pre>
<p>There is no if - else anymore, so the else has to be removed but keep one bracket like this:<br />
<pre><code>&#60;?php { ?&#62;
&#60;?php if( $odd = $i%2 )</code></pre>
<p>Now it should look like you want...
</p>]]></description>
					</item>
		<item>
			<title>Miklo on "Change language and category display"</title>
			<link>http://forum.go41.de/topic/change-language-and-category-display#post-91</link>
			<pubDate>Wed, 16 Dec 2009 17:12:37 +0000</pubDate>
			<dc:creator>Miklo</dc:creator>
			<guid isPermaLink="false">91@http://forum.go41.de/</guid>
			<description><![CDATA[<p>You can see a bit here:</p>
<p><a href="http://dump.no/files/8360519e8f6d/Screen_shot_2009-12-16_at_5.08.43_PM.png" rel="nofollow">http://dump.no/files/8360519e8f6d/Screen_shot_2009-12-16_at_5.08.43_PM.png</a></p>
<p>See how the two first post in the category "MP3" are shown before the rest are shown side by side? I want all post in "MP3" shown side by side. The new code you gave is shown at the top, which is great. But I would like for "MP3" to follow side by side instead of two first on top of each other before the rest. </p>
<p>How do I do that?</p>
<p>EDIT: More pics: <a href="http://dump.no/files/8360519e8f6d/New_site.zip" rel="nofollow">http://dump.no/files/8360519e8f6d/New_site.zip</a>
</p>]]></description>
					</item>
		<item>
			<title>Joern on "Change language and category display"</title>
			<link>http://forum.go41.de/topic/change-language-and-category-display#post-90</link>
			<pubDate>Wed, 16 Dec 2009 16:39:43 +0000</pubDate>
			<dc:creator>Joern</dc:creator>
			<guid isPermaLink="false">90@http://forum.go41.de/</guid>
			<description><![CDATA[<p>preview might work only for admin with a cookie.. I see Arras theme.</p>
<p>to show a slider as on your site you could delete this stuff in headslider.php </p>
<p>ul class="ui-tabs-nav"<br />
...<br />
/ul</p>
<p>this should just run the left side of it
</p>]]></description>
					</item>
		<item>
			<title>Miklo on "Change language and category display"</title>
			<link>http://forum.go41.de/topic/change-language-and-category-display#post-89</link>
			<pubDate>Wed, 16 Dec 2009 16:01:21 +0000</pubDate>
			<dc:creator>Miklo</dc:creator>
			<guid isPermaLink="false">89@http://forum.go41.de/</guid>
			<description><![CDATA[<p>Well, the site is on <a href="http://duvet.no" rel="nofollow">http://duvet.no</a>, but with Arras Theme. I am currently working on this from the back-end of my site, which uses Wordpress. When I have all the little tweaks I need, I will change it.</p>
<p>EDIT: Does this work? <a href="http://duvet.no/?preview=1&#038;template=arthemix-bronze&#038;stylesheet=arthemix-bronze#top" rel="nofollow">http://duvet.no/?preview=1&#038;template=arthemix-bronze&#038;stylesheet=arthemix-bronze#top</a></p>
<p>Had trouble with the gallery that is included with the theme, so I am thinking of using Featured Content Gallery plugin, but when I put the .php code, it doesn't seem to work. Maybe because the theme is not activated yet. So I put up a screenshot meanwhile.
</p>]]></description>
					</item>
		<item>
			<title>Joern on "Change language and category display"</title>
			<link>http://forum.go41.de/topic/change-language-and-category-display#post-88</link>
			<pubDate>Wed, 16 Dec 2009 15:49:08 +0000</pubDate>
			<dc:creator>Joern</dc:creator>
			<guid isPermaLink="false">88@http://forum.go41.de/</guid>
			<description><![CDATA[<p>no! not on second page, here slightly changed:</p>
<pre><code>&#60;!-- query for posts from two categories on first page only --&#62;
&#60;?php if ( !is_paged()) { // comes only if is not paged ?&#62;
&#60;?php $display_categories = array(1,7); // insert the two category IDs to display one post each as featured
		foreach ($display_categories as $category) { ?&#62;
&#60;?php query_posts(&#34;showposts=1&#38;cat=$category&#34;) //one post per selected category ?&#62;
&#60;?php while (have_posts()) : the_post(); ?&#62;
&#60;div class=&#34;clearfloat featposts&#34;&#62;
&#60;div class=&#34;title&#34;&#62;&#60;h2&#62;&#60;a href=&#34;&#60;?php the_permalink() ?&#62;&#34; rel=&#34;bookmark&#34; title=&#34;&#60;?php the_title(); ?&#62;&#34;&#62;&#60;?php the_title(); ?&#62;&#60;/a&#62;&#60;/h2&#62;&#60;/div&#62;
&#60;div class=&#34;spoiler&#34;&#62;
&#60;?php	$values = get_post_custom_values(&#34;Image&#34;); if (isset($values[0])) { ?&#62;
&#60;a href=&#34;&#60;?php the_permalink() ?&#62;&#34; rel=&#34;bookmark&#34; title=&#34;Permanent Link to &#60;?php the_title(); ?&#62;&#34;&#62;
&#60;img src=&#34;&#60;?php echo bloginfo(&#39;template_url&#39;); ?&#62;/scripts/timthumb.php?src=/&#60;?php $values = get_post_custom_values(&#34;Image&#34;); echo $values[0]; ?&#62;&#38;w=150&#38;h=150&#38;zc=1&#38;q=80&#34; alt=&#34;&#60;?php the_title(); ?&#62;&#34; class=&#34;left&#34; /&#62;&#60;/a&#62;
&#60;?php } ?&#62;
&#60;?php the_excerpt(); ?&#62;
&#60;/div&#62;
&#60;div class=&#34;meta&#34;&#62;&#60;?php the_time(&#39;F jS, Y&#39;) ?&#62;&#60;?php the_tags( &#39; &#124; Tags: &#39;, &#39;, &#39;, &#39; &#39;); ?&#62;&#60;?php if(function_exists(&#39;the_views&#39;)) { the_views(); } ?&#62;&#60;/div&#62;
&#60;/div&#62;&#60;?php ?&#62;
&#60;?php endwhile; ?&#62;
&#60;?php } ?&#62;
&#60;?php } ?&#62;
&#60;!-- end query for posts from two categories --&#62;</code></pre>
<p>Is your site to see somewhere?
</p>]]></description>
					</item>
		<item>
			<title>Miklo on "Change language and category display"</title>
			<link>http://forum.go41.de/topic/change-language-and-category-display#post-87</link>
			<pubDate>Wed, 16 Dec 2009 15:46:32 +0000</pubDate>
			<dc:creator>Miklo</dc:creator>
			<guid isPermaLink="false">87@http://forum.go41.de/</guid>
			<description><![CDATA[<p>Really, really great!!! Worked like a charm! </p>
<p>Thank you so much!
</p>]]></description>
					</item>
		<item>
			<title>Joern on "Change language and category display"</title>
			<link>http://forum.go41.de/topic/change-language-and-category-display#post-86</link>
			<pubDate>Wed, 16 Dec 2009 14:46:38 +0000</pubDate>
			<dc:creator>Joern</dc:creator>
			<guid isPermaLink="false">86@http://forum.go41.de/</guid>
			<description><![CDATA[<p>not easy to explain, I would insert a new query before the one you have already, try this:</p>
<p>in index.php look for:<br />
div id="bottom" class="clearfloat"<br />
div id="front-list"</p>
<p>and make place just below this.<br />
now insert the following code BEFORE this<br />
..php if(is_paged()) { ..<br />
..span class="breadcrumbs"......</p>
<pre><code>&#60;!-- query for posts from two categories on first page only --&#62;
&#60;?php if ( !is_paged()) { // comes only if is not paged ?&#62;
&#60;?php $display_categories = array(1,7); }; // two category IDs to display one post each
		foreach ($display_categories as $category) { ?&#62;
&#60;?php query_posts(&#34;showposts=1&#38;cat=$category&#34;) //one post per selected category ?&#62;
&#60;?php while (have_posts()) : the_post(); ?&#62;
&#60;div class=&#34;clearfloat&#34;&#62;
&#60;div class=&#34;title&#34;&#62;&#60;h2&#62;&#60;a href=&#34;&#60;?php the_permalink() ?&#62;&#34; rel=&#34;bookmark&#34; title=&#34;&#60;?php the_title(); ?&#62;&#34;&#62;&#60;?php the_title(); ?&#62;&#60;/a&#62;&#60;/h2&#62;&#60;/div&#62;
&#60;div class=&#34;spoiler&#34;&#62;
&#60;?php	$values = get_post_custom_values(&#34;Image&#34;); if (isset($values[0])) { ?&#62;
&#60;a href=&#34;&#60;?php the_permalink() ?&#62;&#34; rel=&#34;bookmark&#34; title=&#34;Permanent Link to &#60;?php the_title(); ?&#62;&#34;&#62;
&#60;img src=&#34;&#60;?php echo bloginfo(&#39;template_url&#39;); ?&#62;/scripts/timthumb.php?src=/&#60;?php $values = get_post_custom_values(&#34;Image&#34;); echo $values[0]; ?&#62;&#38;w=150&#38;h=150&#38;zc=1&#38;q=80&#34; alt=&#34;&#60;?php the_title(); ?&#62;&#34; class=&#34;left&#34; /&#62;&#60;/a&#62;
&#60;?php } ?&#62;
&#60;?php the_excerpt(); ?&#62;
&#60;/div&#62;
&#60;div class=&#34;meta&#34;&#62;&#60;?php the_time(&#39;F jS, Y&#39;) ?&#62;&#60;?php the_tags( &#39; &#124; Tags: &#39;, &#39;, &#39;, &#39; &#39;); ?&#62;&#60;?php if(function_exists(&#39;the_views&#39;)) { the_views(); } ?&#62;&#60;/div&#62;
&#60;/div&#62;&#60;?php ?&#62;
&#60;?php endwhile; ?&#62;
&#60;?php } ?&#62;
&#60;!-- end query for posts from two categories --&#62;</code></pre>
<p>check if it's working, I will put it in the next free 'Arthemia Green' .. soon
</p>]]></description>
					</item>
		<item>
			<title>Miklo on "Change language and category display"</title>
			<link>http://forum.go41.de/topic/change-language-and-category-display#post-85</link>
			<pubDate>Wed, 16 Dec 2009 12:36:56 +0000</pubDate>
			<dc:creator>Miklo</dc:creator>
			<guid isPermaLink="false">85@http://forum.go41.de/</guid>
			<description><![CDATA[<p>Correct, it is the front list under categories I was talking about, sorry for the misinfo. What I do to exclude/include categories and select the number of posts for the whole list is</p>
<p><code>query_posts("cat=-7,-1&#38;paged=$page&#38;offset=0&#38;posts_per_page=16");</code></p>
<p>But as you can see on the design, the first two posts are aligned differently, and I would like those two to show cat 7 and cat 1. No easy way to explain how to do this?</p>
<p>The excerpt thing worked out greatly. Thank you very much!
</p>]]></description>
					</item>
		<item>
			<title>Joern on "Change language and category display"</title>
			<link>http://forum.go41.de/topic/change-language-and-category-display#post-83</link>
			<pubDate>Wed, 16 Dec 2009 11:21:05 +0000</pubDate>
			<dc:creator>Joern</dc:creator>
			<guid isPermaLink="false">83@http://forum.go41.de/</guid>
			<description><![CDATA[<p>The display of the date is set by &#60;?php the_time('F jS, Y') ?&#62; in some files of the theme. As there are many ways to format a time and date display please check here how to change:<br />
<a href="http://codex.wordpress.org/Template_Tags/the_time" rel="nofollow">http://codex.wordpress.org/Template_Tags/the_time</a></p>
<p>In German themes I use sometimes: &#60;?php the_time('d.m.y') ?&#62; to display: 03.12.09</p>
<p>The "drop-down list" you talk about, do you mean the posts coming below the 'Browse Categories' section? This I would call the front-list as it is in a div id="front-list"</p>
<p>This front-list shows you by default all posts older than the four posts you have in the slider. You could start to include or exclude categories there, BUT this is the index of your site and excluded categories will be excluded on subsequent pages too. To make pagination work on a setup like this is quite difficult.</p>
<p>the_excerpt: in the slider (headslider.php) I use as replacement for the_excerpt this:<br />
<pre><code>&#60;p&#62;&#60;?php the_content_rss(&#39;&#39;, TRUE, &#39;&#39;, 30);  ?&#62;&#60;a href=&#34;&#60;?php the_permalink() ?&#62;&#34; &#62;read more&#60;/a&#62;&#60;/p&#62;</code></pre>
<p>so if for example you replace &#60;?php the_excerpt(); ?&#62; in line 45 of index.php with the line above, the first two post in front-list will show 30 words and a 'read more' link.<br />
Changing the number 30 in that line to 40 will give you 40 words..
</p>]]></description>
					</item>
		<item>
			<title>Miklo on "Change language and category display"</title>
			<link>http://forum.go41.de/topic/change-language-and-category-display#post-81</link>
			<pubDate>Wed, 16 Dec 2009 09:58:43 +0000</pubDate>
			<dc:creator>Miklo</dc:creator>
			<guid isPermaLink="false">81@http://forum.go41.de/</guid>
			<description><![CDATA[<p>Hello</p>
<p>Wondered how I can change language on the date dispalyed. </p>
<p>I also wonder how I can change what category the first two post on top of the drop down list show. I am not sure if that's called "drop-down list", but the posts that comes after the gallery. Would like to display other categories than those displayed after, and would like to play with the_excerpt. Where can I begin to change codes?</p>
<p>Hope I make sense...
</p>]]></description>
					</item>

	</channel>
</rss>

