• Resolved cromermusic

    (@cromermusic)


    I’m building my very first WP-theme from scratch and this is the first major problem I’ve had. Looking at the documentation hasn’t been very helpful unfortunately.

    All this gets is “Anonymous” as user which is incorrect and no date and no comment. What’s the easiest way to fix this. NO FUNCTIONS.PHP just plain simple html and build-in wp-commands.

    <?php if ( have_comments() ) : ?>
    <?php comment_author(); ?>
    <?php comment_date(); ?>
    <?phpcomment_content()?>
    	<?php endif; ?>
Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi

    (@esmi)

    Where did you get that code from? Have you reviewed the comments.php files in any of the 20** theme series?

    Thread Starter cromermusic

    (@cromermusic)

    Oh I have and all of them used functions.php to handle comments display. I’ve looked at themes here on wp.org.
    This code I got from a blog that were writing about how to build wordpress themes.

    Thread Starter cromermusic

    (@cromermusic)

    Solved it using this: https://codex.wordpress.org/Function_Reference/wp_list_comments but it sure wasn’t a pretty code and quite hard to understand. Obviously something WP needs to work on to be a better CMS for non-coders.

    Thread Starter cromermusic

    (@cromermusic)

    *marked as solved*

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Comments.php HOW???!!!’ is closed to new replies.