Hi,
In the Airlock theme, there's only one portfolio template. I would like to have another page with the portfolio template, for example, a 'members' page with the same template as portfolio, but different pages... got it? like it it had 2 different portfolios.
One linked to our works and another linked to members.
For example:
Portfolio
Featured > All > Advertise > Graphics > Motion
Members
All > Staff > Directors > Employees
Best Regards,
Comments
Not possible due to Wordpress current limits.
Only way of dividing portfolio type is its categories.
with regards.
Best Regards
Basically, we just duplicated the taxonomy-skills.php file, renamed it (i.e. taxonomy-upcoming.php), then added some PHP code:
$isUpcoming = false;
if( count( $term_list ) ):
foreach($term_list as $term) {
if ($term->slug == "upcoming") {
$isUpcoming = true;
}
}
endif;
We then modified the original taxonomy-skills.php file to essentially do the opposite.
Anyway great job, I hope it will help some users :-)
Remember to back it up before update.
With regards.
Here's an example:
<?php
$term_list = wp_get_post_terms($post->ID, 'skills', array("fields" => "all"));
$isUpcoming = "NO";
if( count( $term_list ) ):
foreach($term_list as $term) {
if ($term->slug == "upcoming") {
$isUpcoming = "YES";
}
}
endif;
if ($isUpcoming == "YES") {
next_post_link_plus( array(
'format' => '%link',
'link' => '« Previous Project',
'ex_cats' => '46,23,24,22,25',
'ex_cats_method' => 'diff'
));
} else {
next_post_link_plus( array(
'format' => '%link',
'link' => '« Previous Project',
'in_same_cat' => false,
'ex_cats' => '74',
'ex_cats_method' => 'strong'
));
}
?>
<?php
if ($isUpcoming == "YES") {
previous_post_link_plus( array(
'format' => '%link',
'link' => 'Next Project »',
'ex_cats' => '46,23,24,22,25',
'ex_cats_method' => 'diff'
));
} else {
previous_post_link_plus( array(
'format' => '%link',
'link' => 'Next Project »',
'in_same_cat' => false,
'ex_cats' => '74',
'ex_cats_method' => 'strong'
));
}
?>
This sound cool
Is it possible to share the boty modiefied Files (taxonomy-skills.php and taxonomy-upcoming.php) ?
this would be great.
Im not a profi in programming.
thanks
Also, you will need to specifically "hard code" the category IDs. In the example above for instance, I have had to code it so that only certain categories get listed:
'ex_cats' => '46,23,24,22,25',
Maybe Apollo13 can help you?
absolutelly no Problem
anyway thanks.