• Resolved ewg

    (@ewg)


    Self php=ignorant, hopelessly!

    My problem. Below the post title, only date shows in Theme “Fluid Blue”, no author. It does however show up if I change to the “Classic” Theme.

    I’ve been reading a lot about “<?php the_author() ?>”, however it is included in Fliud Blue’s index.php. I’ve disabled all plugins, no effect.

    However, I’m not married to Fluid Blue, any Theme that is max 2 column, with main column of variable width, would do. In fact a single column with with wrapping (variable width) capability (and Meta Data below header) would be best. As long as date and Author show up for each post. Any suggestions? (Classic Theme unfortunately has very bad colour and font settings)
    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Well you’ve got the right idea about ‘the_author’ but in that theme, that bit of code is ‘commented out’ so it really doesn’t work:

    In your index.php change:
    <div class="postmetadata"><?php the_time(get_option('date_format').', '.get_option('time_format')) ?> <!-- <?php _e('by') ?> <?php the_author() ?> --></div>
    to
    <div class="postmetadata"><?php the_time(get_option('date_format').', '.get_option('time_format')) ?> <?php _e('by') ?> <?php the_author() ?> </div>

    Notice that the example removes <!-- and --> which act as in-line markup allowing you to make code inactive or to enter text that doesn’t get processed (aka comment-out).

    Resource:
    Stepping Into Template Tags
    Stepping Into Templates
    Template Hierarchy

    Thread Starter ewg

    (@ewg)

    Phew, MichaelH, you are something else!! Not only did it work like a dream, but I’ve learned something as well. Fiddling with the php gibberish is for me like sticking an arm into a snake-pit. Thanks again.
    ewg

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

The topic ‘author not shown’ is closed to new replies.