you can use do_shortcode() function for this.
Do you have the correct code for this? my php skills are lacking.
just wait for another 30 minutes, we are making a function to make life easier for non-php guys 🙂
You can use
<?php
/* Suppotred by all versions - it will print out the portfolio content */
if (function_exists('nimble_portfolio_show')) {
nimble_portfolio_show();
}
?>
OR
<?php
/* Suppotred from 1.2.1 - it will return portfolio content */
if (function_exists('nimble_portfolio')) {
echo nimble_portfolio();
}
?>
Since there is only one template code, and its default too, you don’t need to pass template code in this function call.
Hi,
I just used the function call above. Which works. However I get a php warning.
Warning: Missing argument 1 for nimble_portfolio_show(),
EDIT : by using echo nimble_portfolio and changing
function nimble_portfolio($atts) {
to
`function nimble_portfolio() {
in numble-portfolio.php (line 143)
Then all works fine.