Support » Fixing WordPress » Want to display <span> of text in .archive but not in .single

  • Hi everyone!

    I’m a WordPress newbie trying something un-basic. Help me out.

    I’m building a corporate website using WordPress as a baby-CMS. So far, it’s been great! My problem is this: currently we have press releases which are WP posts. The titles are like this:

    <h2>January 2010: Something Important</h2>

    When you click on that title on the category “page” it takes you to the single post. There, the client wants it to just say:

    <h2>Something Important</h2>

    No date! I thought this might be a case for “custom fields” but maybe I don’t understand what those are. I created one called “newsdate” and stuck it in my .archive file but it didn’t output anything. Anyone have a good solution for me?

Viewing 1 replies (of 1 total)
  • I’d suggest that these posts are given titles like “Something Important” (the title in the single post page) and that you prefix the title with the month and year that the post was published on category/archive pages.

Viewing 1 replies (of 1 total)
  • The topic ‘Want to display <span> of text in .archive but not in .single’ is closed to new replies.