I can't find the variable code for a postal code abbreviation for states? The only variable I see is the one that writes out the entire state name, I just want the postal code abbreviation.
Is there one? Do I create one myself?
No there isn't one. You can't create your own variables. But you can use Code Replacement to lookup the long state name and replace with the short one.
Example Code Replacement text file:
Alabama[tab]AL
Alaska[tab]AK
Arizona[tab]AZ
Arkansas[tab]AS
California[tab]CA
...
Wyoming[tab]WY
You'd load that file into the 'Set Code Replacement' dialog. Later when you want the short state and your IPTC State is set, you'd enter the following:
\{state}\
Which would cause a lookup of the {state} variable as a Code and would replace with the Replacement value.
HTH,
-Kirk