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)
- Is it possible to go to the next post in the same category?
- Add prefix to link url
- Proper syntax or method for keeping url in modified isotope / category links
- Filter Select results based on selection
- WordPress plugin for nicer looking slugs? Have multiple pages named the same but they get different slugs
- 200 Rewrite blog post links
- Issue adding sub category programmatically
- What query string parameter is available for index.php, that works for both pages and blog articles?
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- How to exclude category ID from Looper in WordPress
- Add a specific part of current category page url to shortcode
- how do I get a specific post from a post with a subcategory in WP
- WP grandchild categories in nested ul li
- Grab posts by multiple categories
- Pass Category Name, Description and Photo into variables to pass to jQuery
- How to show single category archive
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- Move category description below post list in blog
- How to pick the default selected value in wordpress dropdown?
- Applying A Category to Existing Posts Where Page Title Matches Regex
- Get page that displays all children of taxonomy parent
- The default code for “posts_nav_link” on category.php isn’t working
- Changes in permalink structure in WordPress and how to apply to in-site links
- WordPress Persistent connection rule does not work for “posts”
- WordPress every page is 404 not found including admin resources
- WordPress returning 404 for multisite pages
- How to use $_GET function WordPress backend
- selected option if current category is the value
- get_template_part based upon post’s category
- Customize permalink wordpress category id
- how to save selected option in variable for rest api category filter
- Setting default category base on theme activation
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- Mod_Rewrite to show only last subcategory in URL
- Hide subcategories (widget)
- Alert Bar section within WP loop is displaying even though there are no posts
- Let Users Choose Post Categories
- Different post styles depending on category
- Display category name only once inside loop
- Create custom permalinks to show Custom Post Type’s relationship?
- How to show only subcategories in parent category not parent category?
- how to show only specific category for a template
- Redirect to another page using contact form 7? [closed]
- Dilemma of Populating all the categories in a drop down list
- Display most popular posts of category
- Creating sub-categories via php
- Define specific category name in PHP
- Edit the_category (); for a hierarchical display
- JSON REST API WordPress only showing first 10 categories
- Category title output before opening title tag
- How to get post permalink url without a href
- List taxonomy term slugs within shortcode (do_shortcode)
- get taxonomy thumbnail and use it as a variable in code
- Include Parent Term in wp_list_categories
- get_template_directory_uri() providing wrong path for img
- How to array only one key from another array
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- Get all categories post is not in
- Get latest post from all categories except one
- Displaying posts based on category
- stripping tags from excerpt in WordPress is not working
- Use the category name instead of category slug in permalinks
- How do I remove a category from a wordpress loop>
- Get categories names as an array to use it in theme settings
- Change product_base programmatically
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- How to get the last category name of a child category?
- Divi change project category slug
- page-slug.php not working but only for specific slug
- In WordPress, how do I get the number of posts next to single_cat_title(”); in the category.php file?
- Use get() method to grab all categories and output inside another method
- Only show size attributes in product box woocommerce when available
- How to get category name or ID by post?
- Custom post type category not displaying category ID
- Argument for if term-> have child?
- How to get current post category details inside “loop”?
- How to separate categories with commas?
- How to hide posts of a specific custom category in WordPress?
- Show all tags within a category?
- Post not populating for custom post type based on category selection