I’ve created about 10 custom post formats. Everything is working fine. Even have an archive page for the post formats as in this example:
My goal? Get that link into various archive pages, based on the format of that post.
Tried about 10 different code variations based on various things I’ve seen in the developer codex and nothing works. The most obvious thing I tried is:
<?php echo esc_url( get_post_format_link( '' ) ); ?>
Obviously I have left the format slug out of (”) thinking that would grab the format from the current post, but that doesn’t work. Even tested putting (‘book’) to see if that worked, but it didn’t either.
I can get permalinks, titles, custom fields, tags… everything but the post format.
Totally lost as to what I’m missing.