I am new in WordPress. I have a custom post type and from that custom post type, one post will show in home page, and below that post there is a link. When visitors will click on that link, it will take them in a page where all posts of that custom post type will show with pagination.
What I have done so far. - Created custom post type.
Called one post in home page.( Upto that it's working fine. )
Created a archive-custom.php template.
But couldn't solve that link. Php the permalink doesn't work. Also if I try to access the archive page by mysite.com/archive-custom.php no post shows there.
Search in Google, stackoverflow, wordpress codex . But unfortunately ended up with no result.
Any suggestions on how to solve this