diff --git a/functions/jf-content.php b/functions/jf-content.php index d916886..8a8b6fc 100644 --- a/functions/jf-content.php +++ b/functions/jf-content.php @@ -2,7 +2,7 @@ // Return the excerpt of the post, unless the read more element is used // Output of both versions will be the same: one
with content and one
with the more link -function jf_read_more_excerpt( ) { +function jf_read_more_excerpt( $post ) { $content = get_the_content(); if( strpos( $content, '#more-' ) ) { @@ -32,4 +32,4 @@ function jf_add_image_size( $name, $width = 0, $height = 0, $crop = false ) { add_option( "{$name}_size_h", $height, '', 'yes' ); add_option( "{$name}_crop", ((int) $crop), '', 'yes' ); } -} \ No newline at end of file +} diff --git a/templates/content/archive.php b/templates/content/archive.php index cbdaa4b..fafb6a4 100644 --- a/templates/content/archive.php +++ b/templates/content/archive.php @@ -1,9 +1,9 @@ -