# Adding track number to TITLE

**URL:** <https://community.mp3tag.de/t/adding-track-number-to-title/61297>\
**Category:** Support\
**Created:** [June 19, 2023, 7:07am UTC](https://community.mp3tag.de/t/adding-track-number-to-title/61297 "2023-06-19T07:07:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![MargaretBartley](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/d6d6ee/32.png) [@MargaretBartley](https://community.mp3tag.de/u/MargaretBartley)\
**Post date:** [June 19, 2023, 7:07am UTC](https://community.mp3tag.de/t/adding-track-number-to-title/61297/1 "2023-06-19T07:07:07Z")

</div>

A variation on the same question:  
I want the base of the title to be "Devil's Chessboard" followed by the track number.  
Devil's Chessboard 1, Devil's Chessboard 2 etc.

I selected all files in the directory, and put Devil's Chessboard %track% in the Title box on the left-hand side of the window, and clicked on the Save button.

I get Devil's Chessboard %track% for all files. Ooops. What am I missing?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [June 19, 2023, 7:09am UTC](https://community.mp3tag.de/t/adding-track-number-to-title/61297/2 "2023-06-19T07:09:37Z")

</div>

The filename is not the title.  
The tag panel allows only string constants and no variables - every input is taken literally.  
If you want to rename the file based on tag data, use

Convert\>Tag-Filename  
Format string: `%title% $num(%track%,2)`

---

<div class="post-metadata">

**Author:** ![MargaretBartley](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/d6d6ee/32.png) [@MargaretBartley](https://community.mp3tag.de/u/MargaretBartley)\
**Post date:** [June 19, 2023, 7:14am UTC](https://community.mp3tag.de/t/adding-track-number-to-title/61297/3 "2023-06-19T07:14:26Z")

</div>

The Title right now is Devil's Chessboard %track%  
The filename is Devils\_1\_01.mp3.

I want the title to be the literal "Devil's Chessboard" plus the track number, ie Devil's Chessboard 1  
The string you gave me would produce Devil's Chessboard %track% 01  
(the "%track%" is now a literal in every title)  
All the titles are the same, right now

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [June 19, 2023, 7:18am UTC](https://community.mp3tag.de/t/adding-track-number-to-title/61297/4 "2023-06-19T07:18:05Z")

</div>

> [@MargaretBartley](#):
>
> the "%track%" is now a literal in every title)

Yes. Probably because you saved the data accordingly in TITLE.  
MP3tag takes the user data seriously and does not leave anything out unless the user tells it so.  
So, select all the files that have the added "%track%" at the end, remove the superfluous letters and press Ctrl-S to save the modification.  
Then try the converter again.

---

<div class="post-metadata">

**Author:** ![MargaretBartley](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/d6d6ee/32.png) [@MargaretBartley](https://community.mp3tag.de/u/MargaretBartley)\
**Post date:** [June 19, 2023, 7:23am UTC](https://community.mp3tag.de/t/adding-track-number-to-title/61297/5 "2023-06-19T07:23:32Z")

</div>

I know how to remove the superfluous letters.  
What I don't know how to do is have the track number show up , instead of the "%track%" literal

What do I enter in the Title field in the tag panel to get Devil's chessboard 01, Devil's Chessboard 02 etc as the titles?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [June 19, 2023, 7:25am UTC](https://community.mp3tag.de/t/adding-track-number-to-title/61297/6 "2023-06-19T07:25:14Z")

</div>

Oh, sorry, I did not get that you wanted to really manipulate the field TITLE

For that, try Convert\>Tag-Tag for TITLE  
Format string: `%title% $num(%track%,2)`

---

<div class="post-metadata">

**Author:** ![MargaretBartley](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/d6d6ee/32.png) [@MargaretBartley](https://community.mp3tag.de/u/MargaretBartley)\
**Post date:** [June 19, 2023, 7:29am UTC](https://community.mp3tag.de/t/adding-track-number-to-title/61297/7 "2023-06-19T07:29:31Z")

</div>

Turns out it didn't like the apostrophe.  
Once I got rid of that, it worked.

Thanks.

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [June 19, 2023, 7:36am UTC](https://community.mp3tag.de/t/adding-track-number-to-title/61297/8 "2023-06-19T07:36:04Z")

</div>

> [@MargaretBartley](#):
>
> Turns out it didn't like the apostrophe.

?  
Could you show us what you entered as format string?  
Because I did not have any problems:  
 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/2/28d302e1cd3cef32c66e24520de8203a7c51a5d9.png)

If you enter a format string with an apostrophe then you have to escape it:  
 ![grafik](https://community.mp3tag.de/uploads/default/original/2X/1/1c91e32286bfc45ee2cebc67cdefd432f8168dc4.png)

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [July 19, 2023, 7:36am UTC](https://community.mp3tag.de/t/adding-track-number-to-title/61297/9 "2023-07-19T07:36:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
