Title: Link to Custom Post
Last modified: August 19, 2016

---

# Link to Custom Post

 *  Resolved [Amanda](https://wordpress.org/support/users/amandako/)
 * (@amandako)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/link-to-custom-post/)
 * This seems like a very basic question, but I cant seem to find an answer anywhere.
   I have just created my first custom post type and it is working great, now I 
   want to add the link to this page on my custom navigation menu.
    With normal 
   posts and pages I would do something like this
 *     ```
       <a href="<?php echo get_category_link('4'); ?>">Link to a Category</a>
       <a href="<?php echo get_page_link('2'); ?>">Link to a Page</a>
       ```
   
 * is there a simple way to grab the link for my custom post and echo out like the
   ones above?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/link-to-custom-post/#post-1766185)
 * I think get_page_link will work for custom types.
 *  Thread Starter [Amanda](https://wordpress.org/support/users/amandako/)
 * (@amandako)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/link-to-custom-post/#post-1766292)
 * Thanks for your reply, I just tried it and it worked! Cant believe I didn’t just
   try that from the beginning.. thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Link to Custom Post’ is closed to new replies.

## Tags

 * [custom posts](https://wordpress.org/support/topic-tag/custom-posts/)
 * [link](https://wordpress.org/support/topic-tag/link/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Amanda](https://wordpress.org/support/users/amandako/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/link-to-custom-post/#post-1766292)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
