• function new_filter_content($content) {
    $content = get_field( 'mll_kratki_opis');
    return $content;
    };
    add_filter('the_content', 'new_filter_content');

    This function works when there is something in the_content to replace, but it does not work if there is nothing in the_content, how to make it work if there is nothing in the_content too, or only if there is nothing in the_content?

    • This topic was modified 4 months, 3 weeks ago by mllapan.
Viewing 1 replies (of 1 total)
  • Hello mllapan,
    It seems that get_field( 'mll_kratki_opis') value is depending on the main content’s availability or there are any issues with mll_kratki_opis field. Your function should not have any issue.

    Best regards,
    Abdul Hannan

    • This reply was modified 4 months, 3 weeks ago by Abdul Hannan.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.