Forums

[Plugin: WoW-Character-Display] WoW Character Display in custom theme (3 posts)

  1. KDN
    Member
    Posted 4 months ago #

    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/

  2. 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

  3. raufaser
    Member
    Posted 3 months ago #

    No, not "echo = wowcd_shortcode( $atts );"

    use "echo wowcd_shortcode( $atts );"

    misstyped it...

Reply

You must log in to post.

About this Topic