Hi,
I am wanting to use the above code as it is rather nifty and simple solution to adding content above the pictures on the portfolio pages. However I wish to call a different set of content dependant on which page you are on (I have multiple portfolio template pages).
I had a go and in the end I managed a piece of code which worked perfectly - BUT it only works if I use wp_reset_query(); which of course then kills off the rest of the page and means I get the top content, but not the gallery underneith... there seems to be a conflict between my additional query and the one which calls in the content for the page template although I am unsure where or why.
I left the function alterations as the code above and altered the code in the template_portfolio.php page to the below:
<?php
wp_reset_query();
if(is_page(1099)){
echo getPageContent(1099);
} elseif(is_page(5)){
echo getPageContent(5);
} else {
echo getPageContent(1096);
}
?>
Without the wp_reset_query(); the page always displays the else echo call regardless of page. Any ideas of a workaround guys?
Thanks in advance!