<?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: Sortering af varianter i WPEC</title>
		<link>http://wp-danmark.dk/forum/topic/sortering-af-varianter-i-wpec</link>
		<description>WordPress DK Forum Topic: Sortering af varianter i WPEC</description>
		<language>da-DK</language>
		<pubDate>Tue, 18 Aug 2026 06:14:59 +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/sortering-af-varianter-i-wpec" rel="self" type="application/rss+xml" />

		<item>
			<title>Lars18 om "Sortering af varianter i WPEC"</title>
			<link>http://wp-danmark.dk/forum/topic/sortering-af-varianter-i-wpec#post-33158</link>
			<pubDate>tirs, 10 jan 2012 12:48:49 +0000</pubDate>
			<dc:creator>Lars18</dc:creator>
			<guid isPermaLink="false">33158@http://wp-danmark.dk/forum/</guid>
			<description>&#60;p&#62;Hej derude&#60;/p&#62;
&#60;p&#62;Vil gerne ændre sortering i mine varianter fra alfabetisk til id, og har en ide om at det skal foregå i filen variations.class.php... Og måske i denne sektion:&#60;/p&#62;
&#60;p&#62;// Filters to hook into variations to sort etc.&#60;br /&#62;
		$this-&#38;gt;variation_groups = apply_filters( 'wpsc_variation_groups', $this-&#38;gt;variation_groups, $product_id );&#60;br /&#62;
		$this-&#38;gt;all_associated_variations = apply_filters( 'wpsc_all_associated_variations', $this-&#38;gt;all_associated_variations, $this-&#38;gt;variation_groups, $product_id );&#60;/p&#62;
&#60;p&#62;		foreach((array)$this-&#38;gt;variation_groups as $variation_group) {&#60;br /&#62;
			$variation_id = $variation_group-&#38;gt;term_id;&#60;br /&#62;
			$this-&#38;gt;first_variations[] = $this-&#38;gt;all_associated_variations[$variation_id][0]-&#38;gt;term_id;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;Nogen der kan hjælpe?&#60;/p&#62;
&#60;p&#62;Mh&#60;br /&#62;
Lars
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
