1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can you add a custom column to wordpress posts?

Discussion in 'Blogging' started by thesaintv12, Nov 3, 2010.

  1. thesaintv12

    thesaintv12 Junior Member

    Joined:
    Mar 9, 2010
    Messages:
    142
    Likes Received:
    23
    I need to add a column to my wordpress posts on a specific blog.

    This column will be the same for every post, so I want to be able to add it in the code, I guess to the single.php

    Has anyone done this before, and if so can you point me in the right direction?
     
  2. -Jericho-

    -Jericho- Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    Jan 10, 2010
    Messages:
    2,849
    Likes Received:
    1,704
    Location:
    Stalking My Ex-Wife
    Would need to know more about what you want to use the column for. You could setup a simple div tag and use css to align it on the right with a fixed width.

    You want to do this as opposed to just using the sidebar for this purpose?
     
  3. thesaintv12

    thesaintv12 Junior Member

    Joined:
    Mar 9, 2010
    Messages:
    142
    Likes Received:
    23
    I just want to use it for ads3nse code. I had it in my head that I could place the ad code once in the single.php to save adding it manually. I don't want to use the side bar as that is set up for other things.

    Would the div tag you suggested do this? If so I'll have to get reading.
     
  4. thesaintv12

    thesaintv12 Junior Member

    Joined:
    Mar 9, 2010
    Messages:
    142
    Likes Received:
    23
    OK, maybe I should have searched the plugins first. Just in case anyone else needs the same, this seems to do the job nicely -

    Code:
    http://www.mkyong.com/blog/adsense-daemon-wordpress-plugin/