• Resolved keith1025

    (@keith1025)


    After the latest update, I found the answer tab is empty in profile even the user have posted the answer before. However, question and reputation tab work fine.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Rahul Aryan

    (@nerdaryan)

    Thanks for reporting. I am looking.

    Plugin Author Rahul Aryan

    (@nerdaryan)

    Thanks for reporting.
    This was resolved and a patch was released.

    Thread Starter keith1025

    (@keith1025)

    Sorry, but the issue is still appearing on my website.
    I have tried clearing all cache and posting a new answer but is still not working.

    my website:https://classflip.co/

    Thanks.

    Plugin Author Rahul Aryan

    (@nerdaryan)

    Will check soon.

    Thread Starter keith1025

    (@keith1025)

    Hi, any updates on the issue?

    Plugin Author Rahul Aryan

    (@nerdaryan)

    Hello,
    Have you did any override to AnsPress templates?

    Thread Starter keith1025

    (@keith1025)

    I have added this file to my theme.
    screenshot

    Thread Starter keith1025

    (@keith1025)

    Here is my code from file answer-item, is it already the updated version?
    Thanks.

    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    }
    
    if ( ! ap_user_can_view_post( get_the_ID() ) ) {
    	return;
    }
    
    ?>
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    	<div class="ap-answer-single ap-bpsingle">
    		<div class="ap-bpsingle-title entry-title" itemprop="title">
    			<?php ap_answer_status(); ?>
    			<a class="ap-bpsingle-hyperlink" itemprop="url" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
    		</div>
    
    		<div class="ap-bpsingle-content clearfix">
    			<div class="ap-avatar ap-pull-left">
    				<a href="<?php ap_profile_link(); ?>">
    					<?php ap_author_avatar( 40 ); ?>
    				</a>
    			</div>
    			<div class="ap-bpsingle-desc no-overflow">
    				<a href="<?php the_permalink(); ?>" class="ap-bpsingle-published">
    					<time itemprop="datePublished" datetime="<?php echo esc_attr( ap_get_time( get_the_ID(), 'c' ) ); ?>">
    						<?php
    							echo esc_html(
    								sprintf(
    									// Translators: %s contain human readable time.
    									__( 'Posted %s', 'anspress-question-answer' ),
    									ap_human_time( ap_get_time( get_the_ID(), 'U' ) )
    								)
    							);
    							?>
    					</time>
    				</a>
    				<p><?php echo esc_html( ap_truncate_chars( get_the_content(), 200 ) ); ?></p>
    				<a href="<?php the_permalink(); ?>" class="ap-view-question"><?php esc_html_e( 'View Question', 'anspress-question-answer' ); ?></a>
    			</div>
    		</div>
    
    		<div class="ap-bpsingle-meta">
    			<span class="apicon-thumb-up">
    				<?php
    					// translators: %d is count of net votes.
    					echo esc_attr( sprintf( _n( '%d Vote', '%d Votes', ap_get_votes_net(), 'anspress-question-answer' ), ap_get_votes_net() ) );
    				?>
    			</span>
    			<?php if ( ap_is_selected( get_the_ID() ) ) : ?>
    				<span class="ap-bpsingle-selected apicon-check" title="<?php esc_attr_e( 'This answer is selected as best', 'anspress-question-answer' ); ?>"><?php esc_attr_e( 'Selected', 'anspress-question-answer' ); ?></span>
    			<?php endif; ?>
    			<?php ap_recent_post_activity(); ?>
    		</div>
    
    	</div>
    </div>
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Answer tab empty in profile’ is closed to new replies.