• Resolved cikatomo

    (@cikatomo)


    Hello,
    it didn’t work because of the code:

    public function get_the_rcno_book_review_content( $review_id ) {
    
    		$read_more = Rcno_Reviews_Option::get_option( 'rcno_excerpt_read_more' );
    
    		$review_content = '';
    		$review_content .= '<div class="rcno-book-review-content">';
    
    		// We need to check this or we'll get an infinite loop with embedded reviews.
    		if ( $this->is_review_embedded() ) {
    			$review_content .= wpautop( get_post_field( 'post_content', $review_id ) );
    		} else {
    			$review_content .= wpautop( get_the_content( $read_more ) );
    			 //$review_content .= apply_filters( 'the_content', get_the_content() ); // TODO: look into this.
    		}
    
    		$review_content .= '</div>';
    
    		return $review_content;
    	}

    Have to use apply_filter instead wpautop to work.
    Is it safe to comment wpautop and uncomment apply_filter?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kemory Grubb

    (@w33zy)

    Hello,

    Can you provide me with more information on what exactly is happening? Are your getting any specific errors messages?

    Thread Starter cikatomo

    (@cikatomo)

    Hello,
    no messages.
    It supposed to show bookmark button on custom post types, but it doesn’t show.
    It shows the button when I use
    $review_content .= apply_filters( 'the_content', get_the_content() ); // TODO: look into this.

    instead of
    $review_content .= wpautop( get_the_content( $read_more ) );

    It works on custom post types created with custom post types plugin.

    Plugin Author Kemory Grubb

    (@w33zy)

    OK, I understand.

    That section of code was causing issues before, though I can’t remember the exact issue, hence the TODO comment. I’ll look into it and figure out if it safe for normal use.

    Thread Starter cikatomo

    (@cikatomo)

    Ok, thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Doesn’t work cbx bookmark plugin’ is closed to new replies.