The Using Permalinks page on WordPress.org tells you how to check for the permalink structure:
if ( get_option('permalink_structure') ) { echo 'permalinks enabled'; }
The result will be an empty string if permalinks are default, otherwise you will get the permalink pattern though you should not have to worry much about the permalink details if you use Core functions to generate your links.
Related Posts:
- WordPress Permalinks %postname% for RSS2 Feed URL
- Why is my RSS feed not working?
- Edit permalink for old posts and not show on top of RSS feed
- I need to change the attribute of the isPermaLink guid in the WordPress RSS feed – from false to true
- WordPress 4.0 beta – how to change the link URL in RSS feeds
- RSS feed URL for post comment shows HTML source code of page
- Stop WordPress appending `-2` to the end of my url after i change it
- WordPress Permalinks not working in Apache2 Ubuntu 14.04
- Get current URL (permalink) without /page/{pagenum}/
- How to get pretty URLs with add_query_arg in permalinks
- How to display a public profile page for registered users with custom slug?
- How does wordpress keep track of post id when post id is not used in permalinks?
- Post ID At The End Of Permalink URL Effects Performance (Positively)?
- How to change author base without front
- Why does WordPress Pagination Remove the Spaces from my GET Variable?
- Add custom directory in URL
- WordPress overrides the GET variables, (page_id) set in HTACCESS
- Arabic permalink not found
- Changing URL from /%postname%/%post_id to /%category%/%postname%/%post_id%
- How to change the permalink structure of a master page?
- WordPress 3.4 Permalinks Redirection Problem
- Change permalink for a single post entry
- Does WordPress send a 301 header message when you change permalink structures?
- WordPress redirection problem after moving to a new server?
- Different permalink structure per category
- Multilanguage URLs
- Trying to get property of non-object when using get_post_permalink()
- Add .html to Woocommerce permalinks [closed]
- Attachment Page Permalink/URL Rewrite Issue. How to change the actual rewriting?
- How to protect htaccess so it can’t be overwritten?
- Is the ‘/category/post-name-date/’ permalink structure okay?
- How to link to current post in WordPress?
- how to add two same slug under two category?
- Does changing a post title of a published post automatically change permalink?
- How to Get Page 2 / Paginated RSS Feed with Custom Permalink Structure?
- 301 Redirects Result in 404 for WordPress Search Query Strings
- After updating to 4.8 permalinks will not work (all 404)
- conditional statement for active permalinks
- Editing URL character replacement
- Get post text (by its URL) from database dump
- Why wordpress kicks me back to the dashboard of xampp? [closed]
- WordPress archive permalink with leaf category
- Permalink shows garbage character
- Rewrite rule intended for CPTs gives 404 for pages
- Redirecting all posts after changing URL structure with htaccess
- Permalink redirection.
- All top-level pages are using index.php as template
- Redirect all posts permalinks from “.html” to “/”
- how to redirect old blog post urls when permalinks are changed
- Nginx url rewrite rule problem
- Permalink options page corrupts web.config file
- How to rename ‘Tag Base’ with WPeC 3.8?
- Custom rewrite rule ignored
- Permalink Problems
- Make last three words of excerpt a link
- Resolve 404 on posts without category
- url rewrite .htaccess extension to permalink
- Permalink of a page that has already been deleted
- How to remove .html from admin
- Retrieve default permalink while using seo friendly URLs in WordPress
- When I click on a single post my browser goes to about:blank#blocked and the page is white
- WordPress Permalinks problem
- How to get rid of an extra middle part my permalink
- Access or edit custom generated permalinks with WP_Rewrite
- Add custom query vars to pretty permalinks
- How Can I Use a Custom AccessFileName?
- xammp server permalink by postname not working
- Redirect after permalink changes
- replacing post ID by custom post name in url
- Change type of permalinks on TinyMCE link dialogue
- Problem with special character WordPress
- Permalinks and page store
- Change pemalink for one single post without redirect
- Add .html permalink to post if specific category
- Strip subcategory base from URL
- rewrite based slug standar post wp
- How to update wordpress permalink structure with author role?
- How to turn a custom query string into permalink?
- Change Project permalink to custom URL
- Edit Post Permalink option removed, looking for possible causes
- Site Tagline ended up in permalink
- Got 404 error when changed siteurl via DB in WordPress
- Permalinks don’t update nor link properly
- Getting 400 Bad request Error when trying to open posts after updating to wordpress 5.0
- Category Base permalinks
- Pretty Filter URL
- Add URL to selected post in meta box
- How to change dynamic link to relevant post
- Auto-generated pretty permalink not using title since 4.4 update
- Add Custom Pagination Permalink
- Prevent guessing slug
- Pretty permalinks to work for lighttpd webserver?
- Pages included in another page and duplicate content issues for SEO
- Customize category permalinks
- WordPress archive posts returns user to homepage
- URL to an image in a post is changing when permalink is set to custom. Can I avoid this?
- permalinks url with woocommerce
- Blog url disappears
- Standard Htaccess directives disappear by themselves
- My permalinks no longer have the “news” category prefix in the link and it’s causing 404 errors for articles published on the web