Sticky-Fields, a WordPress plugin to save and retrieve fields

September 11th, 2006 ericdes

You can now edit custom fields (content you use the most) from within the administration, such as a headline, proverb or phone number.

You retrieve a field content in your PHP template like this:

global $stickyfield;
echo $stickyfield->field['name-of-your-field'];

With this plugin, you don’t need to modify your templates each time you want to update some hard-coded text.

Download links:
Sticky-Fields 1.0 (.tgz)
Sticky-Fields 1.0 (.zip)

Entry Filed under: WordPress plugins

11 Comments Add your own

Pages: [2] 1 »

  • 11. tela  |  July 19th, 2007 at 10:39 am

    Hi Raymond,

    I think the Sticky-Fields plugin is not the right plugin for what you want to achieve.

    Sticky-FIelds plugin can be used to display short piece of information that you don’t want to enter as a post, or a page.

    For example let’s say you want to display your contact information (address, phone number) on top of your page.

    Without Sticky-Fields you would need to either enter this information in the php template or create a page and call this page from your template.

    Both methods are not easy to set up for such a small piece of information.

    With Sticky-Fields, you enter the field: phone and your actual phone number as a value in the admin page. In the template, you just need to add:

    < ?php
    global $stickyfield;
    echo $stickyfield->field[’name-of-your-field’];
    ?>

    And that will display the value of the Sticky-field, that is your phone number in the example.

    Sorry we don’t have any working example to show as we developped this plugin as a project and are not using on a website.

    Besides that I’m sorry I can not help you with your actual issue.

Pages: [2] 1 »

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed