Title: HTML Helpers
Author: karevn
Published: <strong>15. mai 2011</strong>
Last modified: 16. juni 2011

---

Søk gjennom innstikk

Dette innstikket **er ikkje testa med dei tre siste utgåvene av WordPress**. Det
kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar
av WordPress.

![](https://s.w.org/plugins/geopattern-icon/html-helpers.svg)

# HTML Helpers

 Av [karevn](https://profiles.wordpress.org/karevn/)

[Last ned](https://downloads.wordpress.org/plugin/html-helpers.0.2.3.zip)

 * [Detaljar](https://nn.wordpress.org/plugins/html-helpers/#description)
 * [Omtalar](https://nn.wordpress.org/plugins/html-helpers/#reviews)
 *  [Installasjon](https://nn.wordpress.org/plugins/html-helpers/#installation)
 * [Utvikling](https://nn.wordpress.org/plugins/html-helpers/#developers)

 [Hjelp](https://wordpress.org/support/plugin/html-helpers/)

## Skildring

This plugin adds simple HTML tag generation API to WordPress, like these examples:

generates and prints `<img src="/wp-content/<your-theme>/images/wordpress.png" alt
="Wordpress" />`. «my-image»)) ?> generates and returns almost the same tag, just
with absolute url, id and alt attributes set manually. term_id) ?> generates select
tag with options taken from WP «category» taxonomy and sets $term as selected item
rails-like «cycle» that returns «odd» on first call, «even» on second, «odd» on 
third call, so on. reset_cycle resets the cycle. shortcut for echo(get_post_meta(
$id, «meta_name», true))

Form field generators for `text`, `checkbox`, `hidden` input types, `textarea`, 
and more tags. More docs coming soon, you can read the code to figure out other 
features for now.

## Installasjon

This section describes how to install the plugin and get it working.

 1. Upload `html-helpers` directory to the `/wp-content/plugins/` directory
 2. Activate the plugin through the «Plugins» menu in WordPress
 3. Use html-helpers API in your plugins and themes.

OR

 1. Put html-helpers.php to your plugin or theme folder
 2. `require` it
 3. Use html-helpers API in your plugins and themes.

## Omtalar

There are no reviews for this plugin.

## Bidragsytarar og utviklarar

“HTML Helpers” is open source software. The following people have contributed to
this plugin.

Contributors

 *   [ karevn ](https://profiles.wordpress.org/karevn/)

[Omset “HTML Helpers” til ditt eige språk.](https://translate.wordpress.org/projects/wp-plugins/html-helpers)

### Interested in development?

[Les kjeldekoden](https://plugins.trac.wordpress.org/browser/html-helpers/), sjekk
[SVN-lageret](https://plugins.svn.wordpress.org/html-helpers/) eller abonner på 
[utviklingsloggen](https://plugins.trac.wordpress.org/log/html-helpers/) med [RSS](https://plugins.trac.wordpress.org/log/html-helpers/?limit=100&mode=stop_on_copy&format=rss).

## Endringslogg

#### 0.2.3

 * Removed unecessary closing tags for img, input
 * _img and img support image names without an extension
 * smarter «alt» attribute handling for img

#### 0.2.2

 * Fixed endless recursion for img function

#### 0.2.1

 * Added `cycle,`reset_cycle`and`_cycle` functions to support rails-style cycles
 * Added «multiple» option support for `select` tag.

#### 0.2

 * Initial public release

## Om

 *  Version **0.2.3**
 *  Last updated **15 år sidan**
 *  Active installations **10+**
 *  WordPress version ** 1.5 eller nyare **
 *  Tested up to **3.1.4**
 *  Language
 * [English (US)](https://wordpress.org/plugins/html-helpers/)
 * Tags
 * [api](https://nn.wordpress.org/plugins/tags/api/)[code](https://nn.wordpress.org/plugins/tags/code/)
   [html](https://nn.wordpress.org/plugins/tags/html/)[php](https://nn.wordpress.org/plugins/tags/php/)
 *  [Avansert vising](https://nn.wordpress.org/plugins/html-helpers/advanced/)

## Vurderingar

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/html-helpers/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/html-helpers/reviews/)

## Contributors

 *   [ karevn ](https://profiles.wordpress.org/karevn/)

## Hjelp

Har du noko å seia? Treng du hjelp?

 [Sjå hjelpeforumet](https://wordpress.org/support/plugin/html-helpers/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://nn.wordpress.org/plugins/html-helpers/karev.n@gmail.com?output_format=md)