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

    (@ssuess)

    Think I found the code in question in helpers.php:

    add_shortcode( 'ml_content' , 'miniloop_content' );
    function miniloop_content( $atts ) {
    	extract( shortcode_atts( array(
    		'length' => 100,
    		'wlength' => 0,
    		'after' => '...',
    		'space_between' => 0,
    		'after_link' => 1,
    	), $atts ) );
    	$content = apply_filters( 'the_content', get_the_content() );
    
    	return $content;
    }

    but I don’t see anything obvious that is wrong, any ideas? this is spitting out content only up to the more tag, then adding “(more…)”. I can make the ending change by changing the after item above, but I can’t make it show the entire content…

    Thread Starter Stephen S

    (@ssuess)

    Well, I found a fix by adding

    global $more; $more = -1;

    to the function above. Hope this helps someone else.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘after updating wordpress, ml_content not getting all content’ is closed to new replies.