<?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: Trace custom fields</title>
		<link>http://wp-danmark.dk/forum/topic/trace-custom-fields</link>
		<description>WordPress DK Forum Topic: Trace custom fields</description>
		<language>da-DK</language>
		<pubDate>Wed, 29 Jul 2026 17:10:17 +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/trace-custom-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>Dondy-kurt om "Trace custom fields"</title>
			<link>http://wp-danmark.dk/forum/topic/trace-custom-fields#post-15364</link>
			<pubDate>man, 22 feb 2010 14:01:53 +0000</pubDate>
			<dc:creator>Dondy-kurt</dc:creator>
			<guid isPermaLink="false">15364@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Jeg bruger denne måde til at bygge min submenu op:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;?php /* Menu for subpages of current page */&#60;br /&#62;
        global $notfound;&#60;br /&#62;
        if (is_page() and ($notfound != '1')) {&#60;br /&#62;
            $ancestor = array_pop(get_post_ancestors($post-&#38;gt;ID));&#60;br /&#62;
            $ancestor = isset($ancestor) ? $ancestor : $post-&#38;gt;ID;&#60;br /&#62;
            $title = get_the_title($ancestor);&#60;br /&#62;
            $page_menu = wp_list_pages('echo=0&#38;amp;sort_column=menu_order&#38;amp;title_li=&#38;amp;child_of='. $ancestor);&#60;/p&#62;
&#60;p&#62;        if ( $page_menu) {&#60;br /&#62;
    ?&#38;gt;&#60;/p&#62;
&#60;p&#62;	&#38;lt;d iv class=&#34;sb-pagemenu&#34;&#38;gt;&#60;br /&#62;
		&#38;lt;u l&#38;gt;&#60;br /&#62;
			&#38;lt;? php echo $page_menu; ?&#38;gt;&#60;br /&#62;
		&#38;lt;/u l&#38;gt;&#60;br /&#62;
	&#38;lt;/d iv&#38;gt;&#60;br /&#62;
	&#38;lt; ?php } } ?&#38;gt;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dondy-kurt om "Trace custom fields"</title>
			<link>http://wp-danmark.dk/forum/topic/trace-custom-fields#post-15363</link>
			<pubDate>man, 22 feb 2010 13:55:36 +0000</pubDate>
			<dc:creator>Dondy-kurt</dc:creator>
			<guid isPermaLink="false">15363@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Okay, tak for det... Nu er det sådan at jeg skal bruge det til en menu... &#60;/p&#62;
&#60;p&#62;Menuen ser således ud: &#60;a href=&#34;http://servalle.dk/nyhedsarkiv&#34; rel=&#34;nofollow&#34;&#62;http://servalle.dk/nyhedsarkiv&#60;/a&#62;, menuen til venstre.&#60;/p&#62;
&#60;p&#62;For at få de to linjer tekst under hver link, vil jeg bruge det custom field halløj..&#60;/p&#62;
&#60;p&#62;Så er der en måde at gøre det lidt mere smart på? Jeg kender jo ikke sides ID...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stffn om "Trace custom fields"</title>
			<link>http://wp-danmark.dk/forum/topic/trace-custom-fields#post-15362</link>
			<pubDate>man, 22 feb 2010 13:49:50 +0000</pubDate>
			<dc:creator>stffn</dc:creator>
			<guid isPermaLink="false">15362@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Jeg har aldrig brugt funktionen, men så vidt jeg forstår, så kan du skrive:&#60;br /&#62;
&#60;code&#62;&#38;lt;?php $key_1_values = get_post_meta(&#60;strong&#62;76&#60;/strong&#62;, '&#60;u&#62;key_1&#60;/u&#62;'); ?&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;og så får du værdien i feltet &#34;&#60;u&#62;key_1&#60;/u&#62;&#34; fra post &#60;strong&#62;#76&#60;/strong&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dondy-kurt om "Trace custom fields"</title>
			<link>http://wp-danmark.dk/forum/topic/trace-custom-fields#post-15360</link>
			<pubDate>man, 22 feb 2010 13:42:18 +0000</pubDate>
			<dc:creator>Dondy-kurt</dc:creator>
			<guid isPermaLink="false">15360@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Må desværre meddele at jeg ikke forstå dit link. Er dum på dette område...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>stffn om "Trace custom fields"</title>
			<link>http://wp-danmark.dk/forum/topic/trace-custom-fields#post-15359</link>
			<pubDate>man, 22 feb 2010 13:27:59 +0000</pubDate>
			<dc:creator>stffn</dc:creator>
			<guid isPermaLink="false">15359@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;I teorien, ja;&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_post_meta&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/get_post_meta&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dondy-kurt om "Trace custom fields"</title>
			<link>http://wp-danmark.dk/forum/topic/trace-custom-fields#post-15358</link>
			<pubDate>man, 22 feb 2010 12:50:21 +0000</pubDate>
			<dc:creator>Dondy-kurt</dc:creator>
			<guid isPermaLink="false">15358@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Hejsa WP-fans.&#60;/p&#62;
&#60;p&#62;Vi gør det meget kort. &#60;/p&#62;
&#60;p&#62;Kan jeg trace en sides custom field ud på en anden side?&#60;/p&#62;
&#60;p&#62;fx. SIDE1 har en custom field. Den skal jeg så have til at trace ud på SIDE2.&#60;br /&#62;
Kan man det, og hvordan?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
