Title: unique1233's Replies | WordPress.org

---

# unique1233

  [  ](https://wordpress.org/support/users/unique1233/)

 *   [Profile](https://wordpress.org/support/users/unique1233/)
 *   [Topics Started](https://wordpress.org/support/users/unique1233/topics/)
 *   [Replies Created](https://wordpress.org/support/users/unique1233/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/unique1233/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/unique1233/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/unique1233/engagements/)
 *   [Favorites](https://wordpress.org/support/users/unique1233/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Custom Post Type Archive Link Menu](https://wordpress.org/support/topic/custom-post-type-archive-link-menu/)
 *  Thread Starter [unique1233](https://wordpress.org/support/users/unique1233/)
 * (@unique1233)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-archive-link-menu/#post-13945591)
 * I am using the WP REST API MENUS plugin to expose the menu data via the API.
 * For example: [http://dev.some-url.test/wp-json/wp-api-menus/v2/menus/2](http://dev.some-url.test/wp-json/wp-api-menus/v2/menus/2)
 * The 2 at the end represent the id of the menu. In this case 2 = primary menu.
 * I am not sure if I need to set up anything else in the settings in order for 
   this to work. Everything seems legit.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Custom Post Type Archive Link Menu](https://wordpress.org/support/topic/custom-post-type-archive-link-menu/)
 *  Thread Starter [unique1233](https://wordpress.org/support/users/unique1233/)
 * (@unique1233)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/custom-post-type-archive-link-menu/#post-13945088)
 * From the WordPress admin panel, I go to Appearance -> Menus -> On the left side
   of the screen my custom posts called Services appears and I have an option to
   check Services archive and add it as a link to primary menu.
 * I am using Frontity on the front-end, so all of my wp content is being exposed
   via the API.
 * After saving the menu, when visiting wp-json, this is what the link looks like:
 * {
    “id”: 83, “order”: 3, “parent”: 0, “title”: “Services”, “url”: “[http://dev.some-url.test/services/&#8221](http://dev.some-url.test/services/&#8221);,“
   attr”: “”, “target”: “”, “classes”: “”, “xfn”: “”, “description”: “”, “object_id”:
   12, “object”: “services”, “object_slug”: null, “type”: “post_type_archive”, “
   type_label”: “Архива врсте чланака” }
 * As you can see, the slug is null, therefore on the front-end side of the project,
   I cannot use the link as I should.
 * The slug should be /services as this is the path to the services (custom post
   type) archive. Not sure why am I getting the null as a value to the link.
 * Hope this helps.
    -  This reply was modified 5 years, 6 months ago by [unique1233](https://wordpress.org/support/users/unique1233/).
    -  This reply was modified 5 years, 6 months ago by [unique1233](https://wordpress.org/support/users/unique1233/).

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