As Tom mentioned, $link
is false because your post types don’t have archives. You need to add the has_archive
argument when you register your post types, and set rewrite
to true
so the rewrite rule for your archive is generated.
As Tom mentioned, $link
is false because your post types don’t have archives. You need to add the has_archive
argument when you register your post types, and set rewrite
to true
so the rewrite rule for your archive is generated.