WordPress.org

Support

Support » Themes and Templates » Show post titles only in archives

Show post titles only in archives

  • Is there a way of just showing post titles in the archives?
    I’ve learnt quite a lot about css in the last few days but I can’t work out which part to change to do this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi

    @esmi

    Forum Moderator

    Do not edit the theme itself. First create a child theme for your changes.

    Yes, I’ve been reading up on that. All I’m doing at the moment is a trial to understand what to do. Then I’ll do it properly from the beginning again.

    OK. I’ve sorted the child theme.
    Also read this link which suggests that I should create a date.php file to handle the archive.
    http://codex.wordpress.org/Template_Hierarchy

    Sorted!

    I copied “archive.php” into my child directory and called it “date.php”.

    I copied “content.php” into my child directory and called it “content-date.php”.
    I deleted “the_content” from it.

    I then edited “date.php” to point to my new file “content-date.php”.

    One remaining issue – I deleted the line with “the_content”.
    I’ve tried commenting it out with “/*” and “*/” but that doesn’t seem to make it into a comment.

    Any idea why that is?

    One other question before I start on what I was supposed to be doing!
    The file calls a function called “publish_posted_on()”.

    Is this a standard WordPress function or contained in one of the theme files?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Show post titles only in archives’ is closed to new replies.