<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.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 DK Forum Topic: NEMT SPØRGSMÅL! Om Wordpress Loop!</title>
		<link>http://wp-danmark.dk/forum/topic/nemt-sp%c3%b8rgsmal-om-wordpress-loop</link>
		<description>WordPress DK Forum Topic: NEMT SPØRGSMÅL! Om Wordpress Loop!</description>
		<language>da-DK</language>
		<pubDate>Sun, 26 Jul 2026 13:04:30 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Søg]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://wp-danmark.dk/forum/search.php</link>
		</textInput>
		<atom:link href="http://wp-danmark.dk/forum/rss/topic/nemt-sp%c3%b8rgsmal-om-wordpress-loop" rel="self" type="application/rss+xml" />

		<item>
			<title>Weber om "NEMT SPØRGSMÅL! Om Wordpress Loop!"</title>
			<link>http://wp-danmark.dk/forum/topic/nemt-sp%c3%b8rgsmal-om-wordpress-loop#post-63510</link>
			<pubDate>fre, 18 sep 2015 22:10:00 +0000</pubDate>
			<dc:creator>Weber</dc:creator>
			<guid isPermaLink="false">63510@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Hej flinke folk der sikkert gerne vil hjælpe mig!&#60;/p&#62;
&#60;p&#62;Jeg har dette loop i min home.php, som kører som det skal med de posts jeg laver. Intet problem der.&#60;/p&#62;
&#60;p&#62;Men så vil jeg gerne have et loop længere nede af siden der viser en coutom post type, som jeg har lavet med &#34;Custom Content Type Manager&#34; pluginet.&#60;/p&#62;
&#60;p&#62;Men jeg kan ikke få loopet til at vise siderne jeg laver med denne nye post type.&#60;/p&#62;
&#60;p&#62;min nye Posttype har navnet single-detgamle.php og har koden&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
/**&#60;br /&#62;
 * Sample template for displaying single detgamlevig posts.&#60;br /&#62;
 * Save this file as as single-detgamlevig.php in your current theme.&#60;br /&#62;
 *&#60;br /&#62;
 * This sample code was based off of the Starkers Baseline theme: &#60;a href=&#34;http://starkerstheme.com/&#34; rel=&#34;nofollow&#34;&#62;http://starkerstheme.com/&#60;/a&#62;&#60;br /&#62;
 */&#60;/p&#62;
&#60;p&#62;get_header(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;	&#38;lt;h1&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/h1&#38;gt;&#60;br /&#62;
		&#38;lt;?php the_content(); ?&#38;gt;&#60;br /&#62;
		&#38;lt;?php the_author(); ?&#38;gt;&#60;br /&#62;
		&#38;lt;?php the_excerpt(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;		&#38;lt;h2&#38;gt;Custom Fields&#38;lt;/h2&#38;gt;	&#60;/p&#62;
&#60;p&#62;&#38;lt;!-- You have not associated any custom fields with this post-type. Be sure to add any desired custom fields to this post-type by clicking on the &#34;Manage Custom Fields&#34; link under the Custom Content Type menu and checking the fields that you want. --&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php endwhile; // end of the loop. ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php get_sidebar(); ?&#38;gt;&#60;br /&#62;
&#38;lt;?php get_footer(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;Mit loop der virker ser således ud:&#60;br /&#62;
--------------------------------------------------------------------------&#60;br /&#62;
&#38;lt;?php while ( have_posts() ) : the_post(); ?&#38;gt;&#60;br /&#62;
	&#38;lt;?php get_template_part( 'content', 'home' ); ?&#38;gt;&#60;br /&#62;
	&#38;lt;?php&#60;br /&#62;
// If comments are open or we have at least one comment, load up the comment template&#60;br /&#62;
	if ( comments_open() &#124;&#124; '0' != get_comments_number() )&#60;br /&#62;
	comments_template();&#60;br /&#62;
					?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php endwhile; // end of the loop. ?&#38;gt;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
