> 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/guitar-chords/guitar-chords-2.x.md).

# Guitar Chords (2.x)

{% hint style="danger" %}
**Obsolete**

Note, that the Vexchord and jTab modules are not supported anymore in ChordPress version 3.0.0 and higher.
{% endhint %}

## VexChords and jTab

[VexChords](https://github.com/0xfe/vexchords) and [jTab](https://jtab.tardate.com) are two open source libraries for displaying guitar chords and score diagrams. ChordPress supports both of them. While jTab comes with predefined chord diagrams, VexChords chord diagrams can be created vie the ChordPress Guitar Chord posts.

## VexChords Post Type

After you installed the ChordPress plugin, a new post type called “Guitar Chord” is available.

<figure><img src="/files/8UjnYafDRhQg18VjDqjl" alt=""><figcaption></figcaption></figure>

After creating a Guitar Chord post you can display the chord as a diagram anywhere on your other pages or posts by using the `[chordpress-chord]` shortcut.

## Adding a Guitar Chord Post

A Guitar Chord post needs the necessary information to display it as a diagram. When adding a new post you will be presented the screen to enter these information.

<figure><img src="/files/O4GDmPdrS1u6xjMNSxX6" alt=""><figcaption></figcaption></figure>

The help text of each field tells you what information you need to enter.

At the bottom you a sample diagram display of your chord and below that the shortcode to use on your other pages or posts to display it there.

Here is an example of how a C-Major chord could be configured.

<figure><img src="/files/fBXa26arymlcHFS4KAkf" alt=""><figcaption></figcaption></figure>

## Inserting a Guitar Chord in your page

Simply copy the shortcode shown to you in the Guitar Chord post and paste it into your page editor.

<figure><img src="/files/YdBHRSJjP6idKgiiOn6w" alt=""><figcaption></figcaption></figure>

## The Chord Sheet Feature

The “Show Chord Sheet” feature is an option you can enable for a rendered ChordPro text.

If it is enabled, the ChordPress plugin will scan through all chords used in a song (by their shortnames you have used) and try to find a corresponding Guitar Chord post based on its shortname. All chords found will be displayed in a chord sheet underneath the rendered ChordPro text. Make sure you have created a Guitar Chord post for each chord of a song that you want to display in the chord sheet.

## Chord Sheet Example

<figure><img src="/files/UEuorTycDX2USbQVT3VZ" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lewe.gitbook.io/lewe-chordpress/guitar-chords/guitar-chords-2.x.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
