WP_HeadNFoot

August 29th, 2008

WP_HeadNFoot Allow you to easily insert text into the footer of your site, post or pages> on Pages you can select that the text be only visible in your rss feed giving you the ability to add a copyright message to the feed to deter or at least benefit from feed reposters. filters are available to easilty adapt the text to include such things as post url , author or title and much more.

Installing WP_HeadNFoot

  • download WP_HeadNFoot.
  • Copy to your ‘wp-content/plugins‘ directory.
  • Log in with an administration account.
  • Select the ‘Plugins‘ tab.
  • Scroll down to ‘WP_HeadNFoot’ and click ‘activate‘.

Options

filters

The following filters will be automatically replaced in the text.

  • @@post_rsstitle@@
  • @@post_author@@
  • @@post_author_description@@
  • @@post_author_email@@
  • @@post_author_firstname@@
  • @@post_author_lastname@@
  • @@post_author_nickname@@
  • @@post_author_url@@
  • @@post_url@@
  • @@post_date@@
  • @@post_time@@
  • @@post_title@@
  • @@blog_url@@
  • @@blog_name@@
  • @@blog_desc@@
  • @@blog_home@@.

Other Plug-ins

If you liked this plug-in visits our download area where you will find many more.

Bugs & Suggestions

If you have questions, have found any bugs, or you would like to see features added to WP_HeadNFoot please feel free to use the form at the bottom of the page to Contact us. If WP_HeadNFoot doesn’t fill your needs , feel free to Contact us to discuss a specially commissioned plug-in.

Show Your Appreciation

If you liked WP_HeadNFoot please:

You can also make a donation to Help support its development.


  1. February 6th, 2008 at 01:30 | #1

    Great Plugin!!! on the footer I used it to add banner ads, but i wanted the banner above the credits so went in footer and found that easily

    on the header I would like the header to be below my reg header - how can i change that?

  2. February 6th, 2008 at 11:45 | #2

    @Jackson: Unfortunately to place things in the header the plugin intercepts wp_head. This is usually called from inside the <head> block in html. So really it is not useful in adding things to be displayed to the page.

  3. Leland
    February 13th, 2008 at 22:10 | #3

    Hi there, neat plugin! One thing that bothers me is the code is put on admin pages as well. Is there a way to prevent this? I only want the code to be placed on blog pages. Thanks!

  4. Leland
    February 13th, 2008 at 22:18 | #4

    Actually I just wanted to update. I made a not so pretty hack for it, will work for now:

    function header()
    {

    if (is_admin()) {

    } else {
    echo $this->Options['Option']['Head'];
    }
    }

  5. February 17th, 2008 at 22:30 | #5

    @leland: This has been taken care of in version 2. There are now options to include in on the blog, login or admin pages.
    It now defaults to appear on the blog page only.

  6. March 26th, 2008 at 22:09 | #6

    Trying to use the 2.0 plugin but changes are not taking effect. Do I need to change some permissions or something?

  7. March 27th, 2008 at 11:25 | #7

    When you say the changes are not taking effect do you mean the text isn’t appearing in the page or the text being entered is not saved.
    There are should be no reason for this. Can you give more details about your setup?

  8. March 27th, 2008 at 12:53 | #8

    Using HeadNFoot 2.0.0 and WP 2.3.3When I go to options - HeadNFoot I have "test" entered in the header field from a previous version (never used.) "test" shows in the header. I change it to "Header Test" and Submit Options I get no error message or save message; it just returns to the page with "Header Test" still there.If I navigate to another option and then back, the change is gone and it never shows up in the blog.I tried chmoding most of the files in the HeadNFoot folder to 777 but that had no effect.Any help would be appreciated.

  9. March 31st, 2008 at 18:45 | #9

    @Tom Mahoney : I am having trouble recreating this problem.

  10. April 1st, 2008 at 12:36 | #10

    Don’t know if this will help but even if I delete the word "test" from the header and submit the change, it remains on the blog and comes back when the option panel refreshes. But if I uncheck the option to display in the blog, login or admin pages, it works as expected even though "test" still in the panel. It looks like where ever the header and footer text is stored refuses to change.

  11. April 1st, 2008 at 12:43 | #11

    For kicks, I re-downloaded and re-installed. It did not fix the problem - the word "test" is still there!

  12. April 1st, 2008 at 20:10 | #12

    I just upgrades to WP 2.5. The problem remains.

  13. April 2nd, 2008 at 08:29 | #13

    I added google analytics and when it updates it escapes all the quotes and double quotes when it does not need to?

    <script type=\"text/javascript\">
    var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\");
    document.write(unescape(\"%3Cscript src=\’\" + gaJsHost + \"google-analytics.com/ga.js\’ type=\’text/javascript\’%3E%3C/script%3E\"));
    </script>
    <script type=\"text/javascript\">
    var pageTracker = _gat._getTracker(\"UA-???????-?\");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>

  14. April 4th, 2008 at 18:20 | #14

    No ideas at all?

  15. April 4th, 2008 at 19:22 | #15

    I’m not sure why the options cannot be over written. Especially without any error messages.
    I’ll see i can write something to blank out the options completely , so you can start afresh.
    The problems seems to be in saving though.

  16. April 4th, 2008 at 19:47 | #16

    @Tom Mahoney: download this install it enable it and them immediately disable it.
    The completely remove the options so you can have a fresh start.

  17. April 12th, 2008 at 14:02 | #17

    Yes sir. That fixed the problem. Thank you so very much!

  18. April 23rd, 2008 at 09:35 | #18

    @robert: I’ve been using he plugin with analytics since the begining and don’t get the problem you haev. What is version of WordPress are you running? I take it you are running the latest version of the plugin.

  19. July 9th, 2008 at 03:33 | #19

    I recently installed this plugin and tried to put something in the footer, basically 2 links using <a href code, when I save nothing happens. The footer is not appearing on any of my pages. Do I also have to put something in the header for this to work? Are there any known conflicts? Do I have to enable something in my theme? Thanks!

  20. July 9th, 2008 at 10:35 | #20

    @VirtuallyNadine: This is not something that has been reported yet. There have been problems where the options screen did not show, which should now have been addressed.
    IF you could supply a list of installed plugins we can test for a clash. Also can you let us know the version of wordpress you are on for the test.

  21. Nib
    July 9th, 2008 at 23:22 | #21

    I am using head WP_HeadNFoot together with qtranslate. I want to display different footer in every language but if I use the [lang_en] [/lang_en] it doesn’t change the language.
    Can I do that?

  22. July 10th, 2008 at 12:02 | #22

    From what I can gather about the plug-in, it doesn’t sound possible.

  23. July 15th, 2008 at 17:07 | #23

    Great work!
    But: With a german Admin-Interface the Plugin is displayed in a new tab “Settings” and not in the right one “Einstellungen” (german for “settings”)

  24. July 16th, 2008 at 10:09 | #24

    Thanks. The settings thing was done to have a consistency in the documentation across version where this locations has changed.
    Languages was never considered, this will be changed in the next release.

  25. August 30th, 2008 at 07:28 | #25

    Hi,

    I have started using your plugin and think its tops. What I would really like to do is embed tags from other plugins eg: into the post footer.

    This does option does not seem to be working with your plugin. If I display the page by itself the embedded tag works fine but not within your post footer feature.

    Any ideas?

    R

  26. August 30th, 2008 at 09:34 | #26

    @Robert:
    At present the footer and header and inserted at the default priority , which is 10, or as late as possible. Meaning other filters do not have a chance to act on the inserted text.

    To fix your problem immediately change the following lines in the plugin:

    project/post-footer/index.php project/post-header/index.php

    change
    add_filter ( ‘the_content’, array ($this, ‘filter’ ));
    to
    add_filter ( ‘the_content’, array ($this, ‘filter’ ),1);

    This change will be included in the next release.

  27. August 30th, 2008 at 18:17 | #27

    I am experiencing a couple of minor anomalies. Using Firefox 3 to view the footer on my site, everything seems to work correctly except that the book’s title, which is supposed to appear in a red font, shows up in black.

    Viewing with IE8 beta2, the title does appear in color but the image of the book’s cover is missing.

    I doubt that the issues are the fault of your plugin but I was hoping that someone could offer an explanation.

  28. August 30th, 2008 at 20:39 | #28

    @Crawford Harris - The wouldn’t be a problem with the plugin. It sound like a problem with the css in the code you are inserting.

  29. August 30th, 2008 at 20:59 | #29

    A large part of my problem is that I know no css. What I used was strictly HTML. I understand that using css might solve the font color problem but I can’t imagine why the image would show for Firefox but not IE.

  30. August 30th, 2008 at 21:29 | #30

    Hi,

    Thanks for responding to my query.
    Have found an alternative way to do what I wanted to do.
    Will check out once this fucntion has been included in new release.

    Regards,

    R

  31. November 13th, 2008 at 23:36 | #31

    I would just like this footer to appear on the blog *posts* only, not on pages. Can you please tell me what I should change in the code so it will only appear on my posts? The website is http://carolyncreative.com - thanks!

    Alexa

  32. November 24th, 2008 at 14:44 | #32

    Alexa: This isn’t something that the plug-in can already , and it would be difficult to explain how to hack the plug-in to do this. This will be added to the next release.

  33. January 23rd, 2009 at 06:11 | #33

    I’ve got it installed. I created a page with the text I wanted to use. I then chose “Post Footer” and selected that page in the drop-down box. I then checked the box “Only in Feed.”

    What I hoped would occur is that the text in the page (along with an image and a download link) would then show up at the bottom of every post in the RSS feed.

    But nothing shows up. Here’s the page of text that I’m trying to use to make this happen:

    http://employeetestingcenter.com/blog/items-for-post-footer/

    I’m using WP 2.6

    I’m trying to do something similar (with this plug-in) to what Chris Garret is doing (which is how I found out about this plug-in). He mentions how he is making a bonus book available for subscribers by making the bonus book available at the bottom of each post in the RSS feed — http://www.chrisg.com/subscribe/.

    Tons of people apparently asked him how he was able to make his eBook offer available at the bottom of every RSS feed post, so he posted on his blog that he was using a plug-in…RSS Sticky to begin with that then merged with HeadNFoot.

  34. January 23rd, 2009 at 11:04 | #34

    WordPress does seem cache the RSS feed so adding the footer will not take affect until a new post is added.
    If you uncheck the only in feed box, and check that the plugin is actually working as expected and it is not clashing with anything else, this would appear to be the case.

  35. January 23rd, 2009 at 19:47 | #35

    That worked! Sure took a long time for my NetNewsWire to refresh the feed and the text from the page did not display the same way on various feed readers, but after some tinkering it looks good.

    Thank you! I am just learning WordPress and I bought a book to help me with it. I was going to buy the WordPress for Dummies but it was delayed in coming out. If my current book isn’t sufficient, I’ll head back here and buy the WP for Dummies through your link.

  36. January 23rd, 2009 at 20:18 | #36

    Thanks ;)

  1. July 4th, 2008 at 09:21 | #1