• Resolved Mauricevdh

    (@mauricevdh)


    Hello,

    I’m implementing the plugin (did it before succesfull on another site), but encounter an issue now.
    It’s a bbpress forum and some blogposts. I want to create links from the topics/answers (bbpress) to the blogs. In the dashboard/database the links are made (links are counted), but when I check the topic there is no outgoing link. In the settings I add all the different post types on the white list.

    As far as I can see there is no restriction for custom post types. Am I wrong here? Or something else I’m missing? I’ve disabled all plugins to exclude interfering troubles, but no different outcome.

    Please advise.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support markilj

    (@markilj)

    Thank you for contacting us.

    We dig into the BBpress code and see that our filter for the content is being overwritten or not being called into the frontend.

    But luckily we were able to find a filter on the BBPress that we can hook into.

    You can add the code in WP Code Snippets.

    function apply_ilj_get_the_content_filter_topic($topic_id = 0) {
    	$topic_id = bbp_get_topic_id( $topic_id );
    
    	// Check if password is required
    	if ( post_password_required( $topic_id ) ) {
    		return get_the_password_form();
    	}
    
    	$content = get_post_field( 'post_content', $topic_id );
    	
    	$filtered_content = apply_filters('ilj_get_the_content', $content);
    	return $filtered_content;
    }
    
    add_filter('bbp_get_topic_content', 'apply_ilj_get_the_content_filter_topic', 10, 1);

    Thank you

    Thread Starter Mauricevdh

    (@mauricevdh)

    Thanks so much. Really appreciate the help and it works so far.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No outgoing links custom post type BBpress’ is closed to new replies.