<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>Portfolio Item Ordering &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/portfolio-item-ordering/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/portfolio-item-ordering/feed/</link>
		<description></description>
		<lastBuildDate>Wed, 22 Oct 2025 17:22:55 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-121215</guid>
					<title><![CDATA[Portfolio Item Ordering]]></title>
					<link>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-121215</link>
					<pubDate>Wed, 08 Oct 2014 10:35:49 +0000</pubDate>
					<dc:creator>Right Angle S</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>Is there a way to choose the order of how portfolio items are displayed on a portfolio archive page?</p>
<p>Many thanks for your help.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-121560</guid>
					<title><![CDATA[Reply To: Portfolio Item Ordering]]></title>
					<link>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-121560</link>
					<pubDate>Wed, 08 Oct 2014 19:11:26 +0000</pubDate>
					<dc:creator>Kosher K</dc:creator>

					<description>
						<![CDATA[
						<p>Hi There,</p>
<p>Thanks for writing in,</p>
<p>Can you try adding this code below and see how it works</p>
<pre><code>function cmk_custom_order( $wp_query ) {
     /* Get the post type from the query*/
    $post_type = $wp_query-&gt;query[&#039;post_type&#039;];
    /*If Post type is Portfolio*/
    if ( $post_type == &#039;x-portfolio&#039;) {
    /* Set Order to Random*/
	$wp_query-&gt;set(&#039;orderby&#039;, &#039;rand&#039;);
    /* un-comment if not using random order */
    //$wp_query-&gt;set(&#039;order&#039;, &#039;DESC&#039;);
    }
}
/* Change Order settings before displaying the Postype*/
add_filter(&#039;pre_get_posts&#039;, &#039;cmk_custom_order&#039;);</code></pre>
<p>I set the order to random so you&#8217;ll see right away if the code is working, just reload the page few times and if its working, the very first post should change every refresh</p>
<p>For the list of all order option please check WP Query order paramater <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" rel="nofollow">http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-122874</guid>
					<title><![CDATA[Reply To: Portfolio Item Ordering]]></title>
					<link>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-122874</link>
					<pubDate>Fri, 10 Oct 2014 10:23:08 +0000</pubDate>
					<dc:creator>Right Angle S</dc:creator>

					<description>
						<![CDATA[
						<p>That&#8217;s worked perfectly, thank you very much.</p>
<p>Hers is a link to the page in question:<br />
<a href="http://rightanglecreative.co.uk/portfolio/" rel="nofollow">http://rightanglecreative.co.uk/portfolio/</a></p>
<p>I have looked at the link you provided regarding the various ways of ordering and the following two were of particular interest:</p>
<p><em>1 &#8211; &#8216;meta_value&#8217; &#8211; Note that a &#8216;meta_key=keyname&#8217; must also be present in the query. Note also that the sorting will be alphabetical which is fine for strings (i.e. words), but can be unexpected for numbers (e.g. 1, 3, 34, 4, 56, 6, etc, rather than 1, 3, 4, 6, 34, 56 as you might naturally expect). Use &#8216;meta_value_num&#8217; instead for numeric values.<br />
2 &#8211; &#8216;meta_value_num&#8217; &#8211; Order by numeric meta value (available with Version 2.8). Also note that a &#8216;meta_key=keyname&#8217; must also be present in the query. This value allows for numerical sorting as noted above in &#8216;meta_value&#8217;.</em></p>
<p>If I wanted to order the portfolio items by a custom order to be visually best, would I assign one of the above to each post and then order as I wish? For example, 1 will be visual merchandising manual, 2 will be water bottles and so on…</p>
<p>If this is the case, how do I assign these orders to each post?</p>
<p>Thank you very much for your time and help.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-123146</guid>
					<title><![CDATA[Reply To: Portfolio Item Ordering]]></title>
					<link>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-123146</link>
					<pubDate>Fri, 10 Oct 2014 16:54:44 +0000</pubDate>
					<dc:creator>Cousett</dc:creator>

					<description>
						<![CDATA[
						<p>There has to be a custom field that you are ordering by. You will have to add a custom post field to your portfolio items. You can do this by adding the information to the custom Fields box:</p>
<p><img decoding="async" src="http://i.imgur.com/zqEdmfP.png" alt="" /></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-139160</guid>
					<title><![CDATA[Reply To: Portfolio Item Ordering]]></title>
					<link>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-139160</link>
					<pubDate>Wed, 05 Nov 2014 20:23:10 +0000</pubDate>
					<dc:creator>tdash</dc:creator>

					<description>
						<![CDATA[
						<p>Hi I read through this string, and am still unsure how I would re-order my portfolio index page. I would like to have control over which items go first, second, etc. (not random)</p>
<p>What are the steps to be able to do this without rebuilding all the portfolio pages from scratch?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-139330</guid>
					<title><![CDATA[Reply To: Portfolio Item Ordering]]></title>
					<link>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-139330</link>
					<pubDate>Thu, 06 Nov 2014 02:31:53 +0000</pubDate>
					<dc:creator>Christian</dc:creator>

					<description>
						<![CDATA[
						<p>Hey there,</p>
<p>There&#8217;s no option for that currently so template modification is necessary. But, we have listed this in our feature request list and might include additional Portfolio sorting options in a future release.</p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-139690</guid>
					<title><![CDATA[Reply To: Portfolio Item Ordering]]></title>
					<link>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-139690</link>
					<pubDate>Thu, 06 Nov 2014 16:35:40 +0000</pubDate>
					<dc:creator>tdash</dc:creator>

					<description>
						<![CDATA[
						<p>That would be a super important option. Most use cases for ordering the display of thumbnails in portfolio index are not based on recency, but rather on how the thumbnails display in relation to one another. A lot of trial and error is necessary to come up with the final order. Thanks for considering this.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-139839</guid>
					<title><![CDATA[Reply To: Portfolio Item Ordering]]></title>
					<link>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-139839</link>
					<pubDate>Thu, 06 Nov 2014 19:55:13 +0000</pubDate>
					<dc:creator>Kosher K</dc:creator>

					<description>
						<![CDATA[
						<p>No Problem,</p>
<p>Have a great day</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-666209</guid>
					<title><![CDATA[Reply To: Portfolio Item Ordering]]></title>
					<link>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-666209</link>
					<pubDate>Sun, 15 Nov 2015 23:24:40 +0000</pubDate>
					<dc:creator>WPH2o</dc:creator>

					<description>
						<![CDATA[
						<p>Useful (and somewhat obvious&#8211;for Portfolios) to have an order feature.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-666322</guid>
					<title><![CDATA[Reply To: Portfolio Item Ordering]]></title>
					<link>https://theme.co/archive/forums/topic/portfolio-item-ordering/#post-666322</link>
					<pubDate>Mon, 16 Nov 2015 02:04:10 +0000</pubDate>
					<dc:creator>Rue Nel</dc:creator>

					<description>
						<![CDATA[
						<p>Hello There,</p>
<p>Thanks for updating this thread!<br />
We&#8217;re just glad that it has been useful to you. </p>
<p>If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.</p>
<p>Thanks!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

