Site logo

Archived topic

Load more button not working on post category pages

5 replies · Started by marketingeszkozok on May 12, 2020

Viewing posts 1–6 of 6

ADDING THIS:

add_filter( 'wp_trim_excerpt', 'tu_excerpt_metabox_more' );
function tu_excerpt_metabox_more( $excerpt ) {
$output = $excerpt;

if ( has_excerpt() ) {
$output = sprintf( '%1$s <p class="read-more-button-container">%3$s</p>',
$excerpt,
get_permalink(),
__( 'Read more', 'generatepress' )
);
}

return $output;
}

THE RESULT IS:

The snippet has been deactivated due to an error on line 3:
Cannot redeclare function tu_excerpt_metabox_more.

I have a problem in JP langage:
https://farmamondo2020.factorybank.it/ja/category/farmamondo-news-ja/corporate-news-ja/

EXCERPT Work fine:
https://farmamondo2020.factorybank.it/category/farmamondo-news/corporate-news/
https://farmamondo2020.factorybank.it/ru/category/farmamondo-news-ru/corporate-news-ru/
https://farmamondo2020.factorybank.it/es/category/farmamondo-news-es/corporate-news-es/

In RU EN ES experpt work fine in JP no !?
And the BT read more ... nothing

This archived topic is closed to new replies.