Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134470

Expressions on "Portfolio Category to show on selected page only"

$
0
0

Site is Albury Lifestyle Village

The Albury - Wodonga Region page is using page template portfolio 2, & we want only the albury_wodonga portfolio category to show.
The Testimonials page will be using page template portfolio 1, and again we only want the testimonials portfolio category to show.

Part of the code I think I need to edit in both the portfolio 1 & 2 php files is …

'<?php get_header(); ?>
<div id="content-full">
<h1 style="margin-bottom:15px;">Page Title</h1>
<div id="portfolio-sortable">
<span> '1', 'filter' => '')); // Reset the category filter to show all posts ?>">Show All</span>
<?php // Create a menu for filtering posts by their portfolio category
$categories= get_categories('taxonomy=portfolio_category&title_li=');
foreach ($categories as $category){ ?>
<span> '1', 'filter' => $category->category_nicename));?>" title="Filter by <?php echo $category->name;?>">
<?php echo $category->name;?>
</span>
<?php }?>
</div>'

I'm at a lost what I need to edit & replace with what.
Unfortunately support doesn't get back to me until some stupid hr in the morn my time & then they only ask for admin access. I have now wasted two days on trying to figure this out.
If anyone could help, it would be greatly appreciated.

Thanks
Simone


Viewing all articles
Browse latest Browse all 134470

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>