> For the complete documentation index, see [llms.txt](https://lewe.gitbook.io/lewe-chordpress/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lewe.gitbook.io/lewe-chordpress/shortcodes/chordpress-chord.md).

# \[chordpress-chord]

The `[chordpress-chord]` shortcode accesses a Guitar Chord post and displays it as a diagram.

## Format

{% code overflow="wrap" %}

```
[chordpress-chord parameter="value" ...]
```

{% endcode %}

## Parameters

| Parameter | Description                                                                                                         | Default     | Example                       |
| --------- | ------------------------------------------------------------------------------------------------------------------- | ----------- | ----------------------------- |
| barre     | Barre information for the chord                                                                                     | *no value*  | 5,1,1                         |
| chord     | The ID of the Guitar Chord post                                                                                     | *no value*  | 1303                          |
| fingers   | Finger settings for this chord                                                                                      | *no value*  | (3,2,’2′),(4,3,’4′),(5,3,’3′) |
| frets     | How many frets to show in the diagram                                                                               | 4           | 5                             |
| strings   | How many strings to show in the diagram (usually 6 for guitar and 4 for banjo)                                      | 6           | 4                             |
| position  | The first fret to show at the top of the diagram. Settings this to 1 shows the base fret at the top of the diagram. | 1           | 2                             |
| title     | The title to be displayed above the diagram                                                                         | *no value*  | My C Chord                    |
| tuning    | The tuning of the strings, shown underneath the diagram                                                             | E,A,D,G,B,E | E,A,D,G,H,E                   |

## Examples

{% code overflow="wrap" %}

```
[chordpress-chord chord="112"]
```

{% endcode %}

{% code overflow="wrap" %}

```
[chordpress-chord barre="5,1,1" fingers="(3,2,'2'),(4,3,'4'),(5,3,'3')" title="F# Major" tuning="E,A,D,G,H,E"]
```

{% endcode %}
