What WP php code should I use to place title in my footer?

Discussion in 'Blogging' started by Ghalt, Dec 12, 2007.

  1. #1
    I want to automatically add the URL of the page to the very bottom of each page in small font. (Being a believer in SEO and that the last 20 or so words on the page do matter.)

    What's the proper format for the php string that I should insert?
     
    Ghalt, Dec 12, 2007 IP
  2. CypherHackz

    CypherHackz Well-Known Member

    Messages:
    447
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    155
    #2
    did you mean the post url of or the blog url? if blog url, yes we can put it at the footer but for post url, i don't think we can put it outside the loop.

    -cypher.
     
    CypherHackz, Dec 12, 2007 IP
  3. Rapidrobert

    Rapidrobert Peon

    Messages:
    160
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You should be able to show the current post name as a link with this:

    <a href="<?php echo get_settings('Page'); ?>"><?php wp_title(); ?></a>
     
    Rapidrobert, Dec 13, 2007 IP
  4. creationboy

    creationboy Peon

    Messages:
    113
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    <a href="<?php bloginfo('url');?>"><?php bloginfo('name');?></a> For the blog URL.
     
    creationboy, Dec 15, 2007 IP