1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

WordPress - Adding extra sections to the navigation bar (in my theme)

Discussion in 'WordPress' started by shamess, Aug 8, 2006.

  1. #1
    Howdy,

    Any one know what I would need to change to add another navigation bar section (ie. Pages, Categories, Meta, etc) in my current theme? It's just going to be for random text so adding another link section/blog roll wouldn't work.

    Any help?

    Edit: I forgot to link to the blog. Heh. Random Blogger.
     
    shamess, Aug 8, 2006 IP
    Colleen likes this.
  2. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #2
    You add it to the sidebar.php file of the theme.

    <li><h2>New Section</h2>
    content goes here.
    </li>
     
    Colleen, Aug 8, 2006 IP
    shamess likes this.
  3. shamess

    shamess Well-Known Member

    Messages:
    1,127
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    185
    #3
    Oh, thanks ^^;;

    I have another question: how can I have the number of posts with a tag shown in the Categories section? ie. Reviews (1)
     
    shamess, Aug 8, 2006 IP
  4. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #4
    Change the categories php tag to this one;

    <?php wp_list_cats('sort_column=name&optioncount=1'); ?>
    PHP:
     
    Colleen, Aug 8, 2006 IP
  5. shamess

    shamess Well-Known Member

    Messages:
    1,127
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    185
    #5
    Oh, you're brilliant xD
     
    shamess, Aug 8, 2006 IP
  6. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #6
    Lol.... ;)
     
    Colleen, Aug 8, 2006 IP
  7. terryuk

    terryuk Notable Member

    Messages:
    3,962
    Likes Received:
    319
    Best Answers:
    0
    Trophy Points:
    255
    #7
    Check out some plugins which are available, i use adsense deluxe but ain't really got the hang of using it yet :p
     
    terryuk, Aug 8, 2006 IP
  8. shamess

    shamess Well-Known Member

    Messages:
    1,127
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    185
    #8
    Another question: How do I limit the number of recent blog updates shown on the front page (to five)?

    Haha, this thread is turning into a How-to thread xP
     
    shamess, Aug 8, 2006 IP
  9. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #9
    It's in the admin options>reading, set it there.
     
    Colleen, Aug 8, 2006 IP
  10. shamess

    shamess Well-Known Member

    Messages:
    1,127
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    185
    #10
    Is there a way to not show the link to a specific page on the Page side bar? If not, do you know any extentions that let you do that?

    Another question: What do I edit to put the <!-- google_ad_section_start --> / <!-- google_ad_section_end --> tags at the begining and end of the post content on the main page?
     
    shamess, Aug 8, 2006 IP
  11. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #11
    To exclude certain pages you add this to your code in the sidebar template:

    exclude=3,4,16,17,18,19,20,21,26,27,28,29,31,33&

    right before the title_li part of the pages php tag.

    And all those numbers are pages I've excluded, they are the number id of the corresponding page, change them to your own.

    I don't know anything about the google stuff.
     
    Colleen, Aug 8, 2006 IP
  12. shamess

    shamess Well-Known Member

    Messages:
    1,127
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    185
    #12
    Another question:

    Any ideas which file needs to be included to connect to the database?

    Never mind, found it ^^;;
     
    shamess, Aug 9, 2006 IP
  13. QiSoftware

    QiSoftware Well-Known Member

    Messages:
    805
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    158
    #13
    I have been pushing WordPress as the blogging platform of choice. With so many design firms switching to ExpressionEngine-- I was a bit concerned about this practice. Glad to see so many WordPress gurus here...

    Q...
     
    QiSoftware, Aug 9, 2006 IP
  14. shamess

    shamess Well-Known Member

    Messages:
    1,127
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    185
    #14
    Another question!

    You know the incoming links section on the Admin CP? How does that work? By recording the http refferer header? If so, then why doesn't it say that there are incoming links from these forums?
     
    shamess, Aug 10, 2006 IP