Title: Page content does not display
Last modified: August 24, 2016

---

# Page content does not display

 *  Resolved [oltrecomics](https://wordpress.org/support/users/oltrecomics/)
 * (@oltrecomics)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/)
 * Hi everyone,
    A few moments ago, I realized that (using Customizr child theme)
   does not display page content.
 * Referring page: [http://oltrecomics.altervista.org/blog/about-us/](http://oltrecomics.altervista.org/blog/about-us/)
 * how is it possible?

Viewing 13 replies - 1 through 13 (of 13 total)

 *  Thread Starter [oltrecomics](https://wordpress.org/support/users/oltrecomics/)
 * (@oltrecomics)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055583)
 * Unfortunately I found out that depends on the functions that I have added to 
   my website.
    Functions can be found here: [https://wordpress.org/support/topic/how-can-i-show-the-fields-of-acf?replies=1#post-6825697](https://wordpress.org/support/topic/how-can-i-show-the-fields-of-acf?replies=1#post-6825697)
 *  Thread Starter [oltrecomics](https://wordpress.org/support/users/oltrecomics/)
 * (@oltrecomics)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055630)
 * Lets say I have found out the cause but have not solved the problem.
 *  [Rocco Aliberti](https://wordpress.org/support/users/d4z_c0nf/)
 * (@d4z_c0nf)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055645)
 * Mmm weird, you have the title two times but no content in it…
 *  Thread Starter [oltrecomics](https://wordpress.org/support/users/oltrecomics/)
 * (@oltrecomics)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055754)
 * I thought I had solved but the page is still blank.
    If I remove the function
   mentioned above, it all works wonderfully. There is some line of code that is
   not good
 *  Thread Starter [oltrecomics](https://wordpress.org/support/users/oltrecomics/)
 * (@oltrecomics)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055861)
 * Is there any solution?
 *  Thread Starter [oltrecomics](https://wordpress.org/support/users/oltrecomics/)
 * (@oltrecomics)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055864)
 * Hi,
    the developer of ACF wrote: “Your code looks just fine. However, please 
   note that the get_field() function expected a second parameter which is the post
   id. In cases where it is not set it takes the global post id. Kindly investigate
   on that and let me know.”
 * I noticed that the cause is the code which serves to place the custom fields 
   in the articles:
    [https://gist.github.com/anonymous/1f10aa926d28a62a99a9#file-acf_the_content_filter-php](https://gist.github.com/anonymous/1f10aa926d28a62a99a9#file-acf_the_content_filter-php)
 *  [Rocco Aliberti](https://wordpress.org/support/users/d4z_c0nf/)
 * (@d4z_c0nf)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055868)
 * Hi,
    enable wp_debug and see what’s the error you get. [https://codex.wordpress.org/it:WP_DEBUG](https://codex.wordpress.org/it:WP_DEBUG)
 *  Thread Starter [oltrecomics](https://wordpress.org/support/users/oltrecomics/)
 * (@oltrecomics)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055877)
 * It does not appear any error.
    Non appare alcun errore.
 * In poche parole: quella parte di codice, sopra menzionata, causa la scomparsa
   dei contenuti nelle pagine (post_type: page).
    Usando la precedente porzione 
   di codice:
 *     ```
       add_action('__before_content','my_acf',100);
       function my_acf() {
       if ( ! is_single() )
           return;
       //code here
       }
       ```
   
 * Le pagine funzionano bene.
    Purtroppo a me serve che il gruppo dei field appaia
   nell’articolo.
 * PS: Scusa se scrivo in italiano, ma è il modo migliore per farmi capire.
 *  Thread Starter [oltrecomics](https://wordpress.org/support/users/oltrecomics/)
 * (@oltrecomics)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055913)
 * Since there is no solution, I put again the following code:
 *     ```
       add_action('__before_content','my_acf',100);
       function my_acf() {
       if ( ! is_single() )
           return;
       //code here
       }
       ```
   
 * Unfortunately, there is another problem …
    Look at this post and click on the
   first image: [http://www.oltrezine.com/blog/batman-vita-dopo-la-morte-by-spider-ci/](http://www.oltrezine.com/blog/batman-vita-dopo-la-morte-by-spider-ci/)
 *  Thread Starter [oltrecomics](https://wordpress.org/support/users/oltrecomics/)
 * (@oltrecomics)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055914)
 * Lightbox not working 🙁
 *  [Rocco Aliberti](https://wordpress.org/support/users/d4z_c0nf/)
 * (@d4z_c0nf)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055915)
 * Mmm,
    sorry, totally missed your reply. The lightbox works if the image is part
   of the content. So use again the code with “the_content” filter, and instead 
   of :
 *     ```
       if ( ! is_single() )
       return;
       ```
   
 * use
 *     ```
       if ( ! is_single() )
       return $content;
       ```
   
 * Sorry, was my fault 😉
 *  Thread Starter [oltrecomics](https://wordpress.org/support/users/oltrecomics/)
 * (@oltrecomics)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055916)
 * Hi d4z_c0nf,
    thank you so much, you’re the best!!
 *  [Rocco Aliberti](https://wordpress.org/support/users/d4z_c0nf/)
 * (@d4z_c0nf)
 * [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055918)
 * Eheh thanks man,
    and thanks for the patience 😀 Glad you solved.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Page content does not display’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [Rocco Aliberti](https://wordpress.org/support/users/d4z_c0nf/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/page-content-does-not-display/#post-6055918)
 * Status: resolved