{"id":4840,"date":"2016-05-09T11:43:03","date_gmt":"2016-05-09T11:43:03","guid":{"rendered":"http:\/\/www.solostream.com\/?p=4840"},"modified":"2016-05-12T17:44:12","modified_gmt":"2016-05-12T17:44:12","slug":"how-to-create-a-portfolio-page","status":"publish","type":"post","link":"https:\/\/demo.solostream.com\/wp-magazine\/how-to-create-a-portfolio-page\/","title":{"rendered":"How to Create a Portfolio Page"},"content":{"rendered":"<p>In this tutorial, I&#8217;ll show you how to create a Portfolio page similar to <a href=\"http:\/\/wp-clear-new.solostreamsites.com\/portfolio-page\/\">the one shown on the theme demo site<\/a>.<\/p>\n<p><!--more--><\/p>\n<h3>Step 1 &#8211; Create a Portfolio Category With Sub-Categories<\/h3>\n<p><a href=\"http:\/\/www.solostream.com\/wp-content\/uploads\/2011\/12\/portfolio.jpg\"><img decoding=\"async\" class=\"alignright thickbox size-thumbnail wp-image-4846\" title=\"portfolio\" alt=\"\" src=\"http:\/\/www.solostream.com\/wp-content\/uploads\/2011\/12\/portfolio-150x150.jpg\" width=\"150\" height=\"150\" \/><\/a>What we want to do is create a main category of projects with several sub-categories. So, for example, if you&#8217;re a photographer, you might create a main &#8220;Photos&#8221; category with subcategories that describe the different types of photos within your portfolio (e.g. People, Places, Landscapes, etc). As another example, if you are a designer, you might create a main &#8220;Projects&#8221; category with subcategories such Web, Print, Logos, etc.<\/p>\n<p>To create your categories, in your WP dashboard, click Posts &gt;&gt; Categories, and create your main category as well as your subcategories.<\/p>\n<h3>Step 2 &#8211; Create Your Posts and Place Them in Their Respective Subcategory<\/h3>\n<p>If you&#8217;ve not yet created any Posts for your portfolio entries, you&#8217;ll need to do that and place the Posts in their respective subcategory.<\/p>\n<h3>Step 3 &#8211; Create a New Page for Your Portfolio Page<\/h3>\n<p>Once you have your portfolio Posts created, it&#8217;s time to create the Portfolio page to display them. In your WP dashboard, click Page &gt;&gt; Add New. Give your page a title, and if you like, you can write an introduction in the content box. You can also leave the content box empty.<\/p>\n<p>Next, on the right side of the Add Page screen, look for the Page Attributes box. Within that box, you will see a drop-down box labeled &#8220;Template.&#8221; Select the Portfolio page template from the drop-down box.<\/p>\n<h3>Step 4 &#8211; Create a Custom Field Containing the Category ID of Your Main Portfolio Category<\/h3>\n<p>On the Add Page screen, scroll down to the Custom Fields box. Click the &#8220;Enter New&#8221; link to create a new custom field. For the Name field, enter &#8220;catid&#8221; without the quotes. Then, for the value field, you&#8217;ll need to enter the category ID of your main Portfolio category.<\/p>\n<p>To get the category ID, in your WP dashboard click Posts &gt;&gt; Categories. Then hover your mouse over your Portfolio category. When you do that, the status bar in the lower left corner of your browser will show something like this:<\/p>\n<p><code><br \/>\nhttp:\/\/www.mysite.com\/wp-admin\/edit-tags.php?action=edit&taxonomy=category&tag_ID=3&post_type=post<br \/>\n<\/code><\/p>\n<p>In the above example, the category ID is 3.<\/p>\n<p>After you&#8217;ve entered the custom field name (catid) and the category ID in the value field, click the &#8220;Add Custom Field&#8221; button to save the custom field.<\/p>\n<h3>Step 5 &#8211; Publish Your Page<\/h3>\n<p>Finally, click the Publish button, and you now have a new Portfolio page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, I&#8217;ll show you how to create a Portfolio page similar to the one shown on the theme demo site.<\/p>\n","protected":false},"author":28,"featured_media":5554,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-4840","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","eq-blocks"],"acf":[],"_links":{"self":[{"href":"https:\/\/demo.solostream.com\/wp-magazine\/wp-json\/wp\/v2\/posts\/4840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.solostream.com\/wp-magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demo.solostream.com\/wp-magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demo.solostream.com\/wp-magazine\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.solostream.com\/wp-magazine\/wp-json\/wp\/v2\/comments?post=4840"}],"version-history":[{"count":1,"href":"https:\/\/demo.solostream.com\/wp-magazine\/wp-json\/wp\/v2\/posts\/4840\/revisions"}],"predecessor-version":[{"id":5569,"href":"https:\/\/demo.solostream.com\/wp-magazine\/wp-json\/wp\/v2\/posts\/4840\/revisions\/5569"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/demo.solostream.com\/wp-magazine\/wp-json\/wp\/v2\/media\/5554"}],"wp:attachment":[{"href":"https:\/\/demo.solostream.com\/wp-magazine\/wp-json\/wp\/v2\/media?parent=4840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demo.solostream.com\/wp-magazine\/wp-json\/wp\/v2\/categories?post=4840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demo.solostream.com\/wp-magazine\/wp-json\/wp\/v2\/tags?post=4840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}