Hello.
How do I output the data in a custom theme?
Im going to create a author page for each of the members in our guild. I want to display the data from this plugin on that page. Is there a way to use the function directly?
I was thinking something like <?php wowcd_function($author_name); ?>. I have looked through the plugin code and cant find the correct function to use.
http://wordpress.org/extend/plugins/wow-character-display/
raufaser
Member
Posted 4 months ago #
Here is a solution:
In your theme use the following php code:
<?php
// Output character sheet
$atts = array( 'character' => 'Charactername', 'guild' => '' );
echo = wowcd_shortcode( $atts );
// Output guild sheet
$atts = array( 'character' => '', 'guild' => 'Guildname' );
echo = wowcd_shortcode( $atts );
?>
Should work (but I have not tested it...)
cu,
Marc
raufaser
Member
Posted 3 months ago #
No, not "echo = wowcd_shortcode( $atts );"
use "echo wowcd_shortcode( $atts );"
misstyped it...