• Resolved nceaglesfan

    (@nceaglesfan)


    I have a worpdress multisite were one of the sites when I go to the front end I am not seeing any of the content of a post. I have wordpress debugging enabled and there are no errors, I also have looked at the apache errors and there is nothing there regarding the page load, same as with developer tools no issue.

    I can confirm that with a custom page where we pull in posts based on a query we get the feature image, title and content just find. But when we go to the actual post page we get the title and Feature image. I have disabled and removed all plugins and it made no difference. If I switch the theme back to say the twenty twenty-one the post page show the content. I have been trying to locate the file in the custom theme that controls a single post view but have not been able to identify it. I inherited this site have not done any theme development before. Was wondering if anyone has any place for me to start looking.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    If I switch the theme back to say the twenty twenty-one the post page show the content.

    This means the issue seems to be with your theme.

    What theme are you using?

    This theme acquired from?

    Thread Starter nceaglesfan

    (@nceaglesfan)

    Issue has been resolved. I found out that the SA’s upgrade apache and in the single.php it was calling <? the_content(); ?> without the full php tag like <?php the_content(); ?>.

    Moderator t-p

    (@t-p)

    Glad you got it sorted 🙂

    Hi @nceaglesfan and @t-p,

    I have the same problem in my multisite after update php 7.4 to 8.0 and wordpress from 5.5 to 6.1, old and new posts in backend editor are looking as always, but in frontend post content is missing (source code end with title meta).

    All plugins deacivated step by step and theme changed but no success. What exactly mean “I found out that the SA’s upgrade apache and in the single.php it was calling <? the_content(); ?> without the full php tag like <?php the_content(); ?>”, was this an individual coding issue? But I havn’t selve coded my single.php and how can I resolve the issue?

    Thanks,
    Sparen

    Hi @sparen

    Check your single.php file, search for <? and <?= and replace them with <?php. Those are short-handed versions of the <?php code, which is deprecated in the latest version of PHP. Give it a try, and let me know how that goes! 😄

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘post content not showing on frontend’ is closed to new replies.