• 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)
  • Do not edit the theme itself. First create a child theme for your changes.

    Thread Starter tomstickland

    (@tomstickland)

    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.

    Thread Starter tomstickland

    (@tomstickland)

    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.
    https://codex.www.ads-software.com/Template_Hierarchy

    Thread Starter tomstickland

    (@tomstickland)

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

    Thread Starter tomstickland

    (@tomstickland)

    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?

    Thread Starter tomstickland

    (@tomstickland)

    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.