• Resolved taize_souza

    (@taize_souza)


    Hello!
    I receive this warning everytime I choose a “tag”.

    Warning: printf() [function.printf]: Too few arguments in /home/agseg937/public_html/vidabemfeliz/wp-content/themes/enigma-premium/tag.php on line 7

    And, in my code, I have this:

    <?php get_header(); ?>
    <div class=”enigma_header_breadcrum_title”>
    <div class=”container”>
    <div class=”row”>
    <?php if(have_posts()) :?>
    <div class=”col-md-12″>
    <h1><?php printf( __( ‘Author Archives: %s’, ‘weblizar’ ) ); ?>
    </h1>
    </div>
    <?php endif; ?>
    <?php rewind_posts(); ?>
    </div>

    Any help??????

Viewing 2 replies - 1 through 2 (of 2 total)
  • I think you have to use double quotes where you want a string to be interpreted:

    printf( __( "Author Archives: %s", 'weblizar' ) );

    Thread Starter taize_souza

    (@taize_souza)

    Hello Lorro!

    Thanks for your reply.

    The programmer that created the Enigma Premium Theme just answered me:

    Open up your tag.php file in any editor..

    Place this code

      <h1 class="h1-page-title"><?php printf( __( 'Tag Archives: %s', 'weblizar' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?></h1>

    In place of

      <h1><?php printf( __( 'Author Archives: %s', 'weblizar' ) ); ?></h1>

    **********************************************************

    But THANKS A LOT for your reply!!!

    Have a great sunday! 😉

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

The topic ‘Warning: printf() [function.printf]: Too few arguments in’ is closed to new replies.