Pretty Permalinks
WordPress Plugin Staff List – Pretty Permalinks
The permalink is the entire link (URL) to a post or page.
Pretty permalink example:
https://www.mydomain.com/profil/emmanuel-bourne/
Ugly permalink example:
https://www.mydomain.com/profil/?smid=598
Pretty permalinks, is a term used for SEO friendly URLs in WordPress.
Single page with “pretty” permalinks.
- Only one WordPress page is needed.
- The page names are limited to the ones listed below.
- Subpages won’t work with pretty permalinks.
- The page will display dynamic content – data of the individual staff member.
- Content of the page will match the text of the permalink (usually staff member name).
- Permalinks are built by appending text of pretty permalink to the single page URL.
https://www.mydomain.com/profil/
+ emmanuel-bourne
https://www.mydomain.com/profil/emmanuel-bourne/
Creating pretty permalinks.
- Refresh rewrite rules.
- Pretty permalinks page names.
- Create a single page.
- Set up links to single page.
- Adjust field order.
- Add pretty permalinks.
- Preview single page.
1. Refresh rewrite rules.
To activate Staff List pretty permalinks, refresh WordPress rewrite rules:
- WordPress admin Settings > Permalinks.
- On the Permalink Settings page click Save Settings.
Don’t make any changes. Just open the Settings page and click Save.
- You need to do it only once, after Staff List plugin installation and activation.
- This procedure is not required after automated updates.
2. Pretty permalinks page names.
Pretty permalinks will work only with pages named:
- bio
- profile
- profil
- perfil
- profilo
Permalinks won’t work with subpages.
Will work:
http://abcf.com/profile/john-smith/
Won’t work:
http://abcf.com/faculty/profile/john-smith/
3. Create a single page.
Create and publish single page. Only one page is needed.
Page name is the last part of a permalink URL.
Make sure the page name match one of the pretty permalinks page names, see step 2 (above).
4. Set up links to single page.
- Single Page URL. Required. For how to, see step 3 (above).
- Show Link = Yes.
- Link Text. Text you want to show up on the staff page as hyperlink to a single page.
- Add link to staff image. When checked, staff image will be hyperlinked to the single page.
- Open in a new tab or window. Optional. When checked, single page will open in a new tab.
5. Adjust field order.
Field position on staff page.
Link Text, when populated, adds field type: Single Page Text Link.
Simply drag it up or down and it will be saved in that order.
6. Add pretty permalink.
- Enter a name or any other text.
- Permalink should not include spaces or accented characters.
- Minimum length 7 or more characters!
- No duplicates! Text of the permalink has to unique across all staff members.
If you leave the Pretty Permalink blank, the “ugly” permalink will be created instead.
7. Preview single page.
- Open the staff page.
- Click on an image or text hyperlink.
Custom pretty permalinks
You can extend built-in permalinks and add your own set of options. See: Custom Pretty Permalinks. For developer only. Requires advanced knowledge of PHP.
20943