How to retrieve SLUGs

When using shortcodes like slideshow, portfolio, posts, team and many more, you’ll need to retrieve slugs of taxonomies (e.g. categories) or entries (e.g. individual slideshows).

 

Here’s an example of how to retrieve a portfolio category slug:

1. Navigate to “WP-admin > Portfolio > Categories”.

2. Click the “quick edit” link of required category (fig. 1-1):

Fig. 1-1. "Quick edit" link.

Fig. 1-1. “Quick edit” link.

3. Copy the slug from the “Slug” field (fig. 1-2):

Fig. 1-2. Slug of the category.

Fig. 1-2. Slug of the category.

 

How to retrieve an individual slideshow slug:

1. Navigate to “Wp-admin > Slideshows”.

2. Click the “quick edit” link of required slideshow (fig. 2-1):

Fig. 2-1. "Quick edit" link.

Fig. 2-1. “Quick edit” link.

3. Copy the slug from the “Slug” field (fig. 2-2):

Fig. 2-2. Slug of the slideshow.

Fig. 2-2. Slug of the slideshow.