SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need <span> of text to appear in .archive but not .single posts. Help?

    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?
    tweeting: @biklops

  2. #2
    SitePoint Guru dwzemens's Avatar
    Join Date
    Mar 2005
    Location
    United States
    Posts
    768
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are the press releases the *only* posts you have? If so, just go in and change the single.php template to output the text you want rather than the title of the post, which it currently is doing.

    If you will have other posts besides those press releases you *can* use a custom category template for the specific press release category. Check out this article I wrote a couple years ago which will show you how to do it.

    http://www.1955design.com/2007/12/11...age-templates/

    Good luck!
    Web Design, Marketing, Etc .............
    ....

  3. #3
    SitePoint Guru dwzemens's Avatar
    Join Date
    Mar 2005
    Location
    United States
    Posts
    768
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can also accomplish this by using custom fields. Here's another article I wrote that might help with that.

    http://www.1955design.com/2007/09/14...page-headings/
    Web Design, Marketing, Etc .............
    ....


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •