I have created a Page with portfolio-grid. This works perfectly. URL shows as \?page=992
Items are shown 4 across with no sidebar as I specified for page.
Portfolio category is committee.
When I click on a portfolio item image it displays the item on its own page. eg. URL as /?portfolio=secretary
Breadcrumb shows Home / Committee / secretary
Problem: If I click on Committee in breadcrumb, it does not go back to committee page ( /?page=992)
but instead displays a default page with portfolio grid 3 across and sidebar. URL /?portfolio_entries=committee
How can I change this, or edit the default page???
Hi,
The content of that page is handled by the “taxonomy-portfolio_entries.php” file in the theme directory, you can change it the way you want, however i found a better solution:
1. Create a file with this exact name: taxonomy-portfolio_entries-committee.php (in the root of the theme folder)
2. Open it and paste this code:
<?php header("Location: http://yourwebsite.com/?page=992"); ?>
3. Replace “http://yourwebsite.com/” with the correct URL.
This will redirect from /?portfolio_entries=committee to /?page=992.
Regards,
Josue
Works perfectly. THANK YOU.
I have several different portfolio Categories, and doing the same for all of them I will end up with lots of small files in the theme folder. Just for neatness, is there an easy way to combine these various redirects into one file?
Regards
Chris
Hi Chad,
You could try using server redirection (.htaccess) with a plugin like this one.
Regards,
Josue