Home Forums Theme support Dublicate Post Type Reply To: Dublicate Post Type


normally this is not covered by free support, but we can help you with the basics.

Ok, to add the extra category please add this at the end of your functions.php file:

register_taxonomy(“portfolio-city”, array(“portfolio”), array(“hierarchical” => true, “label” => “City”, “singular_label” => “City”, “rewrite” => true));

(This will add the extra category to portfolio)

Then search for the grid shortcode function (called: function “portfolio_shortcode”) in “posttype-portfolio.php” file in the “7league/” folder.

Add the extra option to the options, for example:

	'city'=>'',       // THIS IS THE LINE WITH THE NEW CODE

Then search for this code (the query options):

($args = array( 'numberposts' => $number, 'post_type'=>'portfolio','post_status' => 'publish', 'project-type'=>$type);)

and change it to this:

$args = array( 'numberposts' => $number, 'post_type'=>'portfolio','post_status' => 'publish', 'project-type'=>$type, 'portfolio-city' => $city );