An example of a call to get _... on the main page, no loops.

<div class="prices"> <?php get_template_part('content','table'); ?> <div class="row"> .. 

He pulled out a couple of pieces from the main page to use them on others with get_template_part('content', 'bla-bla'); On the main page, these pieces are displayed correctly, on the following pages these inserts are displayed half-empty, for example, the table on the main one works fine, and when reused, the table is there, but there is no text inside. The table, like the other pieces filled with Advanced Custom Fields . Where did I make a mistake?

  • Wordpress developers must suffer. - zalex 2:43 pm

1 answer 1

Most likely, or rather almost with a probability of 100%

<?php get_template_part('content','table'); ?>

Used in the standard loop for WordPress. To indicate what the problem is, you should at least write your custom code from the large template. ACF usually works with a post, in the table there are empty values, so in the template, for example, the syntax is written to work in a loop, that is, th_title() th_content() etc. are used. without specifying the post ID (for example, not the_content($post->ID) ).