WordPress.org

Ready to get started?Download WordPress

Forums

More Tag Code Goes Where? (2 posts)

  1. tonymcclellan
    Member
    Posted 5 years ago #

    I posted a question in this thread but since it was resolved I dont think I will get much response. Please take a look here because my more tag is not working and I am trying to understand the instructions.

    http://wordpress.org/support/topic/168032?replies=10

    function the_content('more_link_text', $stripteaser = 0, 'more_file = ''') {
    	$content = get_the_content($more_link_text);
    	$content = apply_filters('the_content', $content);
    	$content = str_replace(']]>', ']]>', $content);
    	echo $content;
    }
    
    function get_the_content($more_link_text = null, $stripteaser = 0, $more_file = '') {
    	global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow;
    
    	if ( null === $more_link_text )
    		$more_link_text = __( '(more...)' );
    
    	$output = '';

    What does null mean? Where exactly do I enter global more using php because none of this has php tags. This is in the wp-includes/post-template.php file. Please help because I am tired of using excerpt editor.

  2. tonymcclellan
    Member
    Posted 5 years ago #

    just want a bump

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags