This was fantastic advice. THANK YOU
I installed a widget called PHP Code Widget https://en-ca.wordpress.org/plugins/php-code-widget/
I used the below code to do what I needed within the widget it self ….
<?
global $asgarosforum;
if ($asgarosforum->current_category == 53) {
echo 'BITCOIN';
echo do_shortcode('[crtools-graph coin="BTC" fiat="USD,EUR"]');
} else if ($asgarosforum->current_category == 54) {
echo 'ETHEREUM';
echo do_shortcode('[crtools-graph coin="ETH" fiat="USD,EUR"]');
}
else if ($asgarosforum->current_category == 55) {
echo 'LITECOIN';
echo do_shortcode('[crtools-graph coin="LTC" fiat="USD,EUR"]');
}
?>
I totally forgot about do_shortcode
function in the shortcodes.php file
You can check the forum out here https://bittalk.ca/home/forums/
Working widget here with in desired category https://bittalk.ca/home/forums/?view=forum&id=3
AGAIN
Thank you for the guidance!!!
This was fantastic advice. THANK YOU
I installed a widget called PHP Code Widget https://en-ca.wordpress.org/plugins/php-code-widget/
I used the below code to do what I needed within the widget it self ….
<?
global $asgarosforum;
if ($asgarosforum->current_category == 53) {
echo 'BITCOIN';
echo do_shortcode('[crtools-graph coin="BTC" fiat="USD,EUR"]');
} else if ($asgarosforum->current_category == 54) {
echo 'ETHEREUM';
echo do_shortcode('[crtools-graph coin="ETH" fiat="USD,EUR"]');
}
else if ($asgarosforum->current_category == 55) {
echo 'LITECOIN';
echo do_shortcode('[crtools-graph coin="LTC" fiat="USD,EUR"]');
}
?>
I totally forgot about do_shortcode
function in the shortcodes.php file
You can check the forum out here https://bittalk.ca/home/forums/
Working widget here with in desired category https://bittalk.ca/home/forums/?view=forum&id=3
AGAIN
Thank you for the guidance!!!
Asgaros has reacted to this post.