Support » Plugin: Question and Answer Forum » [Plugin: Question and Answer Forum] Blog actual authors URLs changed when using this plugin

Viewing 1 replies (of 1 total)
  • tipsninja

    (@tipsninja)

    Single post author code:

    <?php if (option::get('post_author') == 'on') { ?>
    <div class="post_author">
    <?php echo get_avatar( get_the_author_meta('ID'), 70 ); ?>
    <span><?php _e('Author:', 'wpzoom'); ?> 
    
    <?php
    // custom script for retrieving question author name -- i added
    // get post type
    $gpt=get_post_type($post->ID);
    if ($gpt=="question")
    {
    the_author();
    }
    // end of my editing
    ?>
    <?php the_author_posts_link(); ?></span>
    <?php the_author_meta('description'); ?>
    <?php } ?>
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Question and Answer Forum] Blog actual authors URLs changed when using this plugin’ is closed to new replies.