• Resolved Gloria

    (@erfo)


    Hi…
    I want to edit function the_meta()

    post-template.php

    function the_meta() {
    	if ( $keys = get_post_custom_keys() ) {
    		echo "<ul class='post-meta'>\n";
    		foreach ( (array) $keys as $key ) {
    			$keyt = trim($key);
    			if ( is_protected_meta( $keyt, 'post' ) )
    				continue;
    			$values = array_map('trim', get_post_custom_values($key));
    			$value = implode($values,', ');
    			echo apply_filters('the_meta_key', "<li><span class='post-meta-key'>$key:</span> $value</li>\n", $key, $value);
    		}
    		echo "</ul>\n";
    	}
    }

    I want delete “
    <li><span class='post-meta-key'>...", but I don’t want to edit the file post-template.php

    How?
    Thanks…

    [please do not bump]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How modify function the_meta’ is closed to new replies.