WordPress.org

Forums

Publish
Show post titles only in archives (7 posts)

  1. tomstickland
    Member
    Posted 1 year ago #

    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.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

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

  3. tomstickland
    Member
    Posted 1 year ago #

    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.

  4. tomstickland
    Member
    Posted 1 year ago #

    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

  5. tomstickland
    Member
    Posted 1 year ago #

    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".

  6. tomstickland
    Member
    Posted 1 year ago #

    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?

  7. tomstickland
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic