Title: Posts..
Last modified: August 19, 2016

---

# Posts..

 *  Resolved [timhickey](https://wordpress.org/support/users/timhickey/)
 * (@timhickey)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/posts-11/)
 * new post uses a footer page, correct? If a post has been posted and changes are
   made to the footer.php file are the changes reflected in the old posts? I wasn’t
   sure if the footer.php file was used to create the old post and that is it or
   if it is connected and if the footer.php file changes, so does the old posts.
 * I finally found the foter.php file and added a code for auto-pinging and was 
   wondering if I need to do something for the posts prior to adding the code or
   if it was updated with the changes..
 * Thanks,
 * Tim

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/posts-11/#post-1462038)
 * The footer file has no relationship to posts themselves, the footer is a template
   file loaded by your theme, whether it’s loaded or not is dependant on the theme
   file calling it.
 * Please do try to use a decriptive title, your current title gives no indication
   as to what you question relates to, other than posts of course(which is very 
   general). You’ll be much more likely to get help by putting a bit of thought 
   into the title. Simply a suggestion for future questions you may have.
 *  Thread Starter [timhickey](https://wordpress.org/support/users/timhickey/)
 * (@timhickey)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/posts-11/#post-1462056)
 * Sorry, I was trying to think of something more descriptive and starting writing
   the body and forgot to add to the title.
 * Isn’t the footer.php file used at the bottom of posts? Is there way I can tell?
   Maybe somewhere in the source code (which I gave a quick look but did not know
   what I was looking for).
 * If the footer.php file is used for each post and I add to the footer.php file
   how should I handle prior posts which were posted before I changed the footer.
   php file? Do I need to update them, or I wanted to edit the tags and font, will
   doing this and updating use the new footer.php file (if it is used)?
 * Thanks,
 * Tim
 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/posts-11/#post-1462057)
 * the footer.php file is normally for the very bottom of the page…not post
 * lots of folks use it for contact info or whatever
 * if you want to add text above and below each post, you can do it in index.php(
   or single.php for single post view) by adding text above or below the loop
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/posts-11/#post-1462080)
 * Think of the footer like a PHP include, it’s simply a file included by your theme’s
   template files whenever there is a call to get_footer(), you’ll find such calls
   throughout the various template files. Again it does not have a relationship 
   to the posts, it’s purely dependant on the file rendering the page, be it index.
   php for post lists, single.php for single post view, page.php for pages, archive.
   php for archive pages, category.php for category archives, and so on..
 *  Thread Starter [timhickey](https://wordpress.org/support/users/timhickey/)
 * (@timhickey)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/posts-11/#post-1462084)
 * The code is for auto-pinging. The directions say to insert it in the footer.php
   file, but it also mentions the single.php file, then it says if there is no footer.
   php file(and I imagine single.php file), add the code to the file which posts
   are created from.
 * I inserted it on the footer.php file but was wondering if there is a way I can
   test the auto-pinging, or see if it is working. It is supposed to ping every 
   time a visitor visits a post/page.
 * Any ideas?
 * Thanks,
 * Tim
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/posts-11/#post-1462087)
 * Perhaps you could link to the directions you’re following so i could get a better
   idea of what it is you’re attempting to implement(i understand it’s an auto-ping
   feature/script, but it would help to see the code involved).
 *  Thread Starter [timhickey](https://wordpress.org/support/users/timhickey/)
 * (@timhickey)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/posts-11/#post-1462094)
 * Here are the directions and the code for a dynamic IP is below. There is a different
   code for static IPs.
 * Visitor Auto‐Ping:
 * Place this code in your “footer.php” file in your WordPress
    template and find
   the spot just above the </body> tag. If you don’t have a footer.php find where
   your posts and pages are loaded and where the </body> tag is located in your 
   template.
 * For other CMS systems and static sites you may have to adapt
    accordingly and
   place this code above your templates or pages </body> tag.
 * Also, please note that the line highlighted in blue should all be
    one line of
   code and has to be broken down into multiple lines due to the page width. We 
   have also included this in the file “Visitor Auto Ping.txt” so that you can copy
   and paste it easily and have included the code here just for illustrative purposes.
 * If you don’t have a static IP address then use this:
 * <?php
    if (is_single()){ $link=”[http://pingomatic.com/ping/?title=&#8221](http://pingomatic.com/ping/?title=&#8221);.
   get_the_title(). “&blogurl=”.get_permalink().”&rssurl=”.get_bloginfo_rss(‘rs 
   s2_url’).”&chk_weblogscom=on&chk_blogs=on&chk_technorati=on &chk_feedburner=on&
   chk_syndic8=on&chk_newsgator=on&chk_feed ster=on&chk_myyahoo=on&chk_pubsubcom
   =on&chk_blogdigger=on&c hk_blogrolling=on&chk_blogstreet=on&chk_moreover=on&chk_web
   logalot=on&chk_icerocket=on&chk_audioweblogs=on&chk_rubhub= on&chk_geourl=on&
   chk_a2b=on&chk_blogshares=on”; ?> <iframe src=”<?php echo $link; ?>” border=”
   0″ scrolling=”no” style=”border:0px;margin:0px;padding:0px;”></iframe> <?} ?>
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/posts-11/#post-1462096)
 * The only reason those directions mention both single.php and footer.php is because
   it varies depending on how your theme is laid out, in most cases the footer.php
   will be appropriate, because that’s where the closing body tag is ie. `</body
   >` .. so ignore the mention of single.php, 99% of the time footer.php will be
   the appropriate file.
 * In regard to testing the pings, i have no ideas about that, it’s not something
   i’ve dealt with before, i don’t know a great deal about pings myself.
 * My understanding however, is that the pings are simply update services for tracking
   changes/updates or the creation of new content, so it seems odd you want to send
   pings whenever someone views the page(what if you have a visitor every few seconds?..
   do you want to ping every time?).
 *  Thread Starter [timhickey](https://wordpress.org/support/users/timhickey/)
 * (@timhickey)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/posts-11/#post-1462123)
 * You would have to see the whole explanation, but the pings from that code would
   not be from me, they would be from visitors. I guess basically saying they visited
   the site. I need to read into it some more to make sure it is even something 
   I want to do, just wanted to figure out how to do it in case I do.
 * So you saying if the footer.php file has the </body> tag the single.php file 
   will not?
 * Thanks for the information and help!
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/posts-11/#post-1462124)
 * > So you saying if the footer.php file has the </body> tag the single.php file
   > will not?
 * Exactly, it’s more than likely the single.php includes the footer..
 * ..with a line that looks something like..
 *     ```
       <?php get_footer(); ?>
       ```
   
 * And you’re welcome… 🙂
 *  [zasa2007](https://wordpress.org/support/users/zasa2007/)
 * (@zasa2007)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/posts-11/#post-1462304)
 * For timhickey:
 * Do I have the code here right that you are referring to above? Except that I 
   put my I.P. Address where the x’s are right?
 * <?php
    if (is_single() && $_SERVER[‘REMOTE_ADDR’]!=”xx.xxx.xx.xxx”){$link=”[http://pingomatic.com/ping/?title=&#8221](http://pingomatic.com/ping/?title=&#8221);.
   get_the_title().”&blogurl=”.get_permalink().”&rssurl=”.get_bloginfo_rss(‘rss2_url’).”&
   chk_weblogscom=on&chk_blogs=on&chk_technorati=on&chk_feedburner=on&chk_syndic8
   =on&chk_newsgator=on&chk_feedster=on&chk_myyahoo=on&chk_pubsubcom=on&chk_blogdigger
   =on&chk_blogrolling=on&chk_blogstreet=on&chk_moreover=on&chk_weblogalot=on&chk_icerocket
   =on&chk_audioweblogs=on&chk_rubhub=on&chk_geourl=on&chk_a2b=on&chk_blogshares
   =on”; ?>
 * <iframe src=”<?php echo $link; ?>” border=”0″ width=”0″height=”0″
    scrolling=”
   no” style=”border:0px;margin:0px;padding:0px;”></iframe><?} ?>
 * Thanks for the help….

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Posts..’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [Coding](https://wordpress.org/support/topic-tag/coding/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 4 participants
 * Last reply from: [zasa2007](https://wordpress.org/support/users/zasa2007/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/posts-11/#post-1462304)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
