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

---

Søg plugins

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

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

# HTML Helpers

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

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

 * [Detaljer](https://da.wordpress.org/plugins/html-helpers/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/html-helpers/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/html-helpers/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/html-helpers/#developers)

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

## Beskrivelse

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.

## Installation

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.

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“HTML Helpers” er open source-software. Følgende personer har bidraget til dette
plugin.

Bidragsydere

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

[Oversæt “HTML Helpers” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/html-helpers)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/html-helpers/), tjek
[SVN repository](https://plugins.svn.wordpress.org/html-helpers/), eller abonner
på [udviklerloggen](https://plugins.trac.wordpress.org/log/html-helpers/) via [RSS](https://plugins.trac.wordpress.org/log/html-helpers/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 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

## Meta

 *  Version **0.2.3**
 *  Senest opdateret **15 år siden**
 *  Aktive installationer **10+**
 *  WordPress-version ** 1.5 eller højere **
 *  Testet op til **3.1.4**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/html-helpers/)
 * Tags
 * [api](https://da.wordpress.org/plugins/tags/api/)[code](https://da.wordpress.org/plugins/tags/code/)
   [html](https://da.wordpress.org/plugins/tags/html/)[php](https://da.wordpress.org/plugins/tags/php/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/html-helpers/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

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

[Se alle anmeldelser.](https://wordpress.org/support/plugin/html-helpers/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

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

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](https://da.wordpress.org/plugins/html-helpers/karev.n@gmail.com?output_format=md)