Title: Missing continue reading button
Last modified: July 20, 2022

---

# Missing continue reading button

 *  Resolved [fabykennedy](https://wordpress.org/support/users/fabykennedy/)
 * (@fabykennedy)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/)
 * Hi. I’m sorry to post a topic after another but I’ve got a very bad problem. 
   Full posts were displayed in the homepage instead of showing just a paragraph
   with the “continue reading” button.
 * [There was a user with my exact issue](https://wordpress.org/support/topic/read-more-option-not-appearing-in-translated-posts/)
   and he was told to add a code in the functions.php file. I did it and it basically
   worked but… Posts are now showing without the “continue reading” button. But 
   the biggest problem is that every time I open an article to fully read it, I 
   can see only a paragraph. The rest of the content is lost.
 * Please let me know hot to solve the problem. Thank you.

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/missing-continue-reading-button-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/missing-continue-reading-button-2/page/2/?output_format=md)

 *  Thread Starter [fabykennedy](https://wordpress.org/support/users/fabykennedy/)
 * (@fabykennedy)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/#post-15840665)
 * One last thing. If this can help, I tried to change various themes and until 
   now only one seems to work: Twenty Twenty-One. Continue reading button is showed
   and the article is complete when I click on it to fully read it.
 *  Plugin Author [sbouey](https://wordpress.org/support/users/sbouey/)
 * (@sbouey)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/#post-15841266)
 * Hi,
 * What is your template ? can you post a screenshot ?
 * i will repost here the solution and see if i can integrate it in a next Falang
   version out of the box.
 * Stéphane
 *  Thread Starter [fabykennedy](https://wordpress.org/support/users/fabykennedy/)
 * (@fabykennedy)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/#post-15842340)
 * Thanks for replying. I currently use [this theme](http://lavander.premiumcoding.com/),
   Lavander Lite.
 *  Plugin Author [sbouey](https://wordpress.org/support/users/sbouey/)
 * (@sbouey)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/#post-15843288)
 * Hi,
 * i have check and it’s work like before just add this to your function.php
 *     ```
       function falang_translate_post_content($content){
           if ( preg_match( '/<!--more(.*?)?-->/', $content, $matches ) ) {
               if ( has_block( 'more', $content ) ) {
                   // Remove the core/more block delimiters. They will be left over after $content is split up.
                   $content = preg_replace( '/<!-- \/?wp:more(.*?) -->/', '', $content );
               }
   
               $_post = get_post();
   
               $output     = '';
   
               $content = explode( $matches[0], $content, 2 );
   
               if ( ! empty( $matches[1] ) ) {
                   $more_link_text = strip_tags( wp_kses_no_null( trim( $matches[1] ) ) );
               }
   
               $output = $content[0];
   
               if ( count( $content ) > 1 ) {
                   if ( ! empty( $more_link_text ) ) {
                       $output .= apply_filters( 'the_content_more_link', ' <a>ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text );
                   }
               }
               $output = force_balance_tags( $output );
               return $output;
   
           }
           return $content;
       }
   
       add_filter('falang_translate_post_content','falang_translate_post_content');
       ```
   
 * `
 * Stéphane
    -  This reply was modified 3 years, 10 months ago by [sbouey](https://wordpress.org/support/users/sbouey/).
      Reason: type for the code
 *  Thread Starter [fabykennedy](https://wordpress.org/support/users/fabykennedy/)
 * (@fabykennedy)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/#post-15843777)
 * Hi Stéphane and thank you very much for your support. I’m sorry to bother but
   I couldn’t even try if the code works because when I save the change I see this
   error:
 * `syntax error, unexpected 'falang_translate_post_content' (T_STRING), expecting')'`
 * I just don’t get it. The [code](https://wordpress.org/support/topic/read-more-option-not-appearing-in-translated-posts/#post-15630947)
   I took from the old topic doesn’t return any errors.
 *  Thread Starter [fabykennedy](https://wordpress.org/support/users/fabykennedy/)
 * (@fabykennedy)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/#post-15843833)
 * Again, if this can help, I noticed that the problem is this piece of code:
 *     ```
       if ( ! empty( $more_link_text ) ) {
                       $output .= apply_filters( 'the_content_more_link', ' <a>ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text );
       ```
   
 * Conversely, the old one works fine and doesn’t return any errors:
 *     ```
       if ( ! empty( $more_link_text ) ) {
                       $output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink( $_post ) . "#more-{$_post->ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text );
       ```
   
 *  Plugin Author [sbouey](https://wordpress.org/support/users/sbouey/)
 * (@sbouey)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/#post-15844970)
 * Perhaps a problem in the copy/paste in the thread, if you know a sharecode site
   where i can put the code it can make it
 * i have see codeshare but it’s need registration and code expire in 24h
 * Stéphane
 *  Thread Starter [fabykennedy](https://wordpress.org/support/users/fabykennedy/)
 * (@fabykennedy)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/#post-15846292)
 * Well I’ve found [this](https://bbcode.ilma.dev/) BB Code generator. You could
   use the [code][/code] tag and copy and paste the code here.
 *  Plugin Author [sbouey](https://wordpress.org/support/users/sbouey/)
 * (@sbouey)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/#post-15846322)
 * Yes it was i have done the first time, i can put it another time
 *     ```
       function falang_translate_post_content($content){
           if ( preg_match( '/<!--more(.*?)?-->/', $content, $matches ) ) {
               if ( has_block( 'more', $content ) ) {
                   // Remove the core/more block delimiters. They will be left over after $content is split up.
                   $content = preg_replace( '/<!-- \/?wp:more(.*?) -->/', '', $content );
               }
   
               $_post = get_post();
   
               $output     = '';
   
               $content = explode( $matches[0], $content, 2 );
   
               if ( ! empty( $matches[1] ) ) {
                   $more_link_text = strip_tags( wp_kses_no_null( trim( $matches[1] ) ) );
               }
   
               $output = $content[0];
   
               if ( count( $content ) > 1 ) {
                   if ( ! empty( $more_link_text ) ) {
                       $output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink( $_post ) . "#more-{$_post->ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text );
                   }
               }
               $output = force_balance_tags( $output );
               return $output;
   
           }
           return $content;
       }
       add_filter('falang_translate_post_content','falang_translate_post_content');
       ```
   
    -  This reply was modified 3 years, 10 months ago by [sbouey](https://wordpress.org/support/users/sbouey/).
 *  Thread Starter [fabykennedy](https://wordpress.org/support/users/fabykennedy/)
 * (@fabykennedy)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/#post-15846607)
 * Hi Stéphane. You posted the old code, the one that doesn’t return any errors.
   I already tried it as I wrote before but it doesn’t solve my problem. The “continue
   reading” button is missing and the translated articles only show one paragraph
   insted of the full text…
 * I wanted to try the new one, but as I told you it returns that error. What should
   I do now?
 *  Plugin Author [sbouey](https://wordpress.org/support/users/sbouey/)
 * (@sbouey)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/#post-15846650)
 * Hi,
 * Do you have a link to your site or screen capture of the funcion.php , i have
   checked another time and it’s work perfectly locally on the woodmart template.
 * Stéphane
 *  Thread Starter [fabykennedy](https://wordpress.org/support/users/fabykennedy/)
 * (@fabykennedy)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/page/2/#post-15846880)
 * [First half of the screen](https://imgur.com/zhID9wg)
    [Second half of the screen](https://imgur.com/OGqnNt2)
   [Missing continue reading button in the homepage](https://imgur.com/32uuGJA) 
   [Full article showing only one paragraph instead of full text](https://imgur.com/G9nKX2x)
 *  Plugin Author [sbouey](https://wordpress.org/support/users/sbouey/)
 * (@sbouey)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/page/2/#post-15851898)
 * Hi,
 * I have found the problem , it’s when the gutenberg more read text is empty (default
   case)
    in this case nothing is displayed. I give you a solution soon.
 * Stéphane
 *  Thread Starter [fabykennedy](https://wordpress.org/support/users/fabykennedy/)
 * (@fabykennedy)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/page/2/#post-15857502)
 * All seems to work fine with the last code you gave me. Thanks again for everything.
 *  Plugin Author [sbouey](https://wordpress.org/support/users/sbouey/)
 * (@sbouey)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/page/2/#post-15857626)
 * set the thread as resolved

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/missing-continue-reading-button-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/missing-continue-reading-button-2/page/2/?output_format=md)

The topic ‘Missing continue reading button’ is closed to new replies.

 * ![](https://ps.w.org/falang/assets/icon-256x256.png?rev=2351566)
 * [Falang multilanguage for WordPress](https://wordpress.org/plugins/falang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/falang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/falang/)
 * [Active Topics](https://wordpress.org/support/plugin/falang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/falang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/falang/reviews/)

 * 32 replies
 * 3 participants
 * Last reply from: [fabykennedy](https://wordpress.org/support/users/fabykennedy/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/missing-continue-reading-button-2/page/3/#post-16059670)
 * Status: resolved