• hey there,
    ich thought i get the solution with stella-plugin-conflict, but no.

    the “apply_content_filters” is the problem.

    i need the html, when i do not check the apply_content_filters, i get html, but in the second language i have the main-content, not the content from the custom post widget.

    i found in “post-widget.php”

    // Add support for WPML Plugin.
    		if ( function_exists( 'icl_object_id' ) ){
    			$custom_post_id = icl_object_id( $custom_post_id, 'content_block', true );
    		}

    is there something i can add to support Stella-Plugin?

    heeeelppp plz ??

    greetings

    https://www.ads-software.com/plugins/custom-post-widget/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter keywee

    (@keywee)

    Here ist some Stella-Funktion:

    function localize_body($body) {
    		global $post;
    
    		if ( STELLA_CURRENT_LANG != STELLA_DEFAULT_LANG ){
    			$body_new = get_post_meta( $post->ID, '_body-' . STELLA_CURRENT_LANG, true );
    
    			$noteaser = ( (false !== strpos($body_new, '<!--noteaser-->') ) ? true : false );
    			$extends = get_extended( $body_new );
    			$extended = $extends['extended'];
    			$body_new = $extends['main'];
    
    			if ( ! is_single() ) {
    
    				$more_link_text = apply_filters( 'stella_more_link_text', __( '(more...)' ) );
    				$more_link = apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-{$post->ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text );
    
    				if ( '' != $extended ) {
    						$body_new .= $more_link;
    				}
    			} else {
    				if ( $noteaser )
    					$body_new = '';
    
    				$body_new .= (0 != strlen( $body_new )) ? '<span id="more-' . $post->ID . '"></span>' . $extended : $extended;
    			}
    
    			if (0 != strlen( $body_new ) || ! $this->use_default_lang_values){
    				return $body_new;
    			}
    		}
    		return $body;
    	}
    Thread Starter keywee

    (@keywee)

    here is the bug, i think.. what i have to do ??

    if ( !$apply_content_filters ) { // Don't apply the content filter if checkbox selected
    				$content = apply_filters( 'the_content', $content);
    			}
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘content / languages (stella)’ is closed to new replies.