The “page” in WordPress usually refers to a “PAGE page”, as in only post of page post type. Not any page of the site in general.
What you want to link to is category archive. Something along this should work:
echo get_category_link( 'cooking-sauces' );
If cooking-sauces is slug of a term that belongs to custom taxonomy (as opposed to native category taxonomy) you will probably need to use something like:
echo get_term_link( 'cooking-sauces', 'your-taxonomy-slug' );
Related Posts:
- Allow two posts (from different categories) to have the same slug
- How to Remove Parents Category Permalink from Posts
- Get posts with at least one category in common with current post?
- WordPress custom slug (endpoint) and compare all links
- What is an equivalent of single_cat_title for getting the slug of the category?
- php script to change slug in post automatically
- Remove slugs from custom posts type
- Test the existence of a page/article by its URL, taking in consideration the URL rewriting by filters
- Get nice name of category from slug (remove dashes of category)
- Custom PHP form needs refresh to load page correctly
- Child-Theme Category View with modified permalinks (%category% removed)
- Rewrite rule not working, but only when parameter is text
- How does Permalink work with the AMP plugin after Removing Parent Permalink Catalog from Posts
- Hide a specific category title from displaying on site
- Exclude a category slug on pagination
- Custom content using in_category
- WordPress using get_term to retreive slug not working as expected
- Weird slug in archives permalink
- get_category only returning details for ‘uncategorized’
- Remove /category/ from category (archive) page URLs (without using a plugin)
- How to get URL of current page displayed?
- exclude multiple terms using get_terms() function
- how to get permalink structure with php
- Archive listing of posts by publish year (multiple years)
- Add custom field to attachments in a specific category
- Looking to exclude blog posts from category Previous/Next buttons
- add_rewrite_rule with bottom priority doesn’t handle the WordPress pages
- Plural Category Base Slug On Category Archive Page
- How to exclude specific category from the get_the_category(); array
- Add HTML Attributes To Anchor Tags In `wp_list_categories()` Function
- Rename “Portfolio” slug?
- Where do posts get the sidebar from?
- combine Code 1 with Code 2
- get post based on category chosen in drop down – The ajax method
- Global variable $post returning incorrect object
- Proper syntax or method for keeping url in modified isotope / category links
- What query string parameter is available for index.php, that works for both pages and blog articles?
- WordPress every page is 404 not found including admin resources
- WordPress returning 404 for multisite pages
- get_template_part based upon post’s category
- Customize permalink wordpress category id
- Alert Bar section within WP loop is displaying even though there are no posts
- Different post styles depending on category
- Display most popular posts of category
- List taxonomy term slugs within shortcode (do_shortcode)
- get taxonomy thumbnail and use it as a variable in code
- Use get() method to grab all categories and output inside another method
- Only show size attributes in product box woocommerce when available
- Argument for if term-> have child?
- Displaying list of posts in category page
- Echoing a CSS class based on category of post in a list
- how to edit a specific post slug using a php code?
- WordPress theme showing blank page
- is user member of a group, show them categories [closed]
- Showing Subcategory Name/Link Instead of Parent Category
- WordPress custom taxonomy
- Finding and removing duplicates within WP Arrays
- Using multiple variables to assign categories to an array
- Compare current post Category in select menu
- Can not call .php files after switching to %postname%
- Get the list of post categories
- Pagination at category doesnt work with same name of page
- Woocommerce. Get a list of products in the current category on the archive page and product page
- How to show categories and date on posts
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- A different permalink structure for different categories
- How to move a post from one category to another
- How to enable HTML tags in category description without breaking the category page
- Trying to show the category of a post in the post display
- Create category after theme setup and modify the default one
- Get WordPress username to customize url
- Permalink like example.com/taxonomy/post_type/postname
- Customizing the output of the archive and category widget without altering the original behavior of the widget
- Displaying 3 Category Posts differently
- How can I output the slug of a comment author?
- Code works on page-example.php by not category-example.php
- get_category display only 1
- How to list categories by page id in wordpress
- redirect 301 with special character like WIX site “#!”
- Showing the project type in HREF
- Front end post submissions do not get submitted in the category
- hierarchical taxonomy in permalinks? using same slug
- Make an array listing custom taxonomy
- Get category id for a custom category and display it in a class
- Multiple URL from Custom post name
- Trying to exclude posts from a category on the home page
- wp_get_archive for category returning different URLs on different but similar sites
- Showing Subcategory’s Name and Link Instead of Parent Category’s
- How to insert the first letter in uppercase [closed]
- WordPress add parameters with friendly url structure
- why css file not link?how to create permalink?
- Remove /Page/ from slug when we’re visiting 2nd and other inner pages of the blog page
- How to limit number of posts in the certain category and exclude the oldest post automatically
- WordPress CPT & Custom Taxonomy with the SAME Permalink Structure
- child category under correct parent
- Modify the permalink structure for a specific category
- WordPress per ACF – permalink is not working
- Processing data and redirecting with query string
- Prevent publishing of uncategorized posts
- Custom plugin with dynamic child pages listing database records