Archive Links - Author/Date/Category

I’m having a mental block on this for some reason. I’m attempting to have a card that has the author, post date, category and provide links to those specific archives, but I’m not for some reason understanding how to link them. Can someone kick me in the head and refresh me on this? :slight_smile:

Thanks…

Hi Lyle,
assuming that your card is in a loop, you can simply use the Dynamic Data Tags (and add :link to them if they don’t already contain a link).

Best regards,
timmse

1 Like

Hmm… I thought this is what I was doing, but it wasn’t displaying the archive. Let me go back through it again. Thanks @timmse

@timmse So, I don’t think I am doing this right.

If I select the ‘dynamic’ option, I don’t have a way to edit the ‘link’ code to add :link.

Here’s just a snip of what I have on my screen. I’m misunderstanding what you mean by adding that :link to the shortcode, which I can in the ‘display’ but I can’t in the link to the get to the ‘author archive’, or the ‘date archive’, etc… Or am I missing something.

It doesn’t appear to link to the archive like the post title one does with post link in the link to field. So I’m not sure what I’m missing here.

That’s correct, but you can build the link yourself easily and use “external URL” for example:

https://yourdomain.com/author/{author_name}

Does that work for you?

Hmm… ok, I was presuming it would be a internal option just like the post link(permalink). I’ll play around with that and see if I can get it to work. Now, I presume of course, in the template, I’ll need to target it to be used on such archives as well.

Did some more testing with this, and some examples based on your line.

Attempting to do ‘author’ I get the following…

Field input - /author/{author}
Link output - https://bt.thedoves.org/author/https://bt.thedoves.org/author/

it doesn’t seem that there is an output for the different archive ‘types’ based on the options from what it looks like. The use case would be for example, a book store. If I have the ‘author’ as a field that I want to filter on and only show the authors, how would that be achieved. Previously, I could view an archive by Author using that as the post type(ie, author archive), but the URL formation doesn’t appear to work is what its coming down to.

@timmse So I think I got a handle on whats happening. For the other archive types(Author/Date/etc), I was trying to attach a ‘link’ to them. Turns out, if you just point to the archive name in a simple text element, it links to it anyway, which kinda stumps me how that happens, but whatever. So I was able to get Author archives to work, but I haven’t figured out the ‘Post Date’ archive yet. I’ve tried all the different options, but the link doesn’t format right, so I’m not sure about that one. Couple screenshots to show what I mean.