It depends a bit on what are your exact status slug and title and page title are, but something like this should work, if I understand you correctly:
$page = get_page_by_title($status->name." tickets");
echo '<li><a href="'.get_permalink($page->ID).'">'
.$status->name.' (<span>'.$counts[$status->slug].'</span>)</a></li>';
Related Posts:
- Retrieve posts by term id custom query
- Looping Through Custom Tax Terms and Displaying All Posts For Each
- How to List Parent Term Links for Custom Taxonomy With & Without Children?
- Print terms with taxonomy and metabox value
- List related terms + taxonomies
- Search Query for Multiple Terms In Same Taxonomy
- How to get the term description in a taxonomy term archive query?
- Query pages by child term
- Adding a query var to taxonomy term archive – gets redirected to the other taxonomy archive page
- get_the_term_list without links in 3.1
- Inserting terms in an Hierarchical Taxonomy
- get_term_children for immediate children only (not grandchildren)
- Display category posts grouped by taxonomy
- Is there a way to ‘Lock’ a Taxonomy?
- Creating a non-removable taxonomy term
- restrict_manage_posts not working in 3.3.1
- Return only the custom sub-term for custom post type, do not echo term-parent
- wp_insert_term is adding a term that has no name
- Get terms from multiple taxonomies
- get_terms showing link to category even if all posts are drafts
- Determine if Term has Grandparent/Great-Grandparent
- Retrieving custom taxonomy in order, but excluding specific tax IDs
- Get main parent categories for a product
- get taxonomy terms for parent and child
- Taxonomy query for children of parents
- Separator for multiple terms
- Ordering Posts with Custom Taxonomy Terms Array
- How to create a theme template for the taxonomy “root”
- Checking if a Page has an Associated Term?
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- Get multiple term objects by ids
- Echo custom taxonomy term name
- How to handle “the_terms” inside loop
- How to create drop down for child categories of current taxonomy being viewed?
- How to dynamically add custom taxonomy terms as a sub-menu of an existing menu item, using custom walker class
- Get terms ordered by post date
- Taxonomy.php issue with search and filters
- Why does WP rename similar “term name”-slugs in separate taxonomies?
- Get Bottom Most Level Taxonomy Terms?
- How can I get WP to build a feed based on multiple taxonomy terms
- get_terms in a taxonomy template
- Set custom post type terms by id without knowing taxonomy
- Display hierarchical subterms of custom taxonomy based on depth
- How to determine the depth of a term in a custom taxonomy?
- $wpdb query a post type within a specific taxonomy term while ordering posts by custom meta value?
- get_term_children doesn’t return an array of children terms
- Term count by user
- AJAX response, edit tags
- List child terms if parent but show nothing on children
- Display Taxonomy Terms in an option tag with value being the slug
- If post has ANY term attached to it, get the first one only
- How to add contents of a custom field to a taxonomy term list?
- Sort order by slug for looped child terms of custom taxonomy
- get the taxonomies terms associated with users
- Updating / Saving items generated by wp_terms_checklist on frontend
- Rewrite rules for varying nested terms of custom taxonomy
- List Posts For Terms Of A Custom Taxonomy For Any Post Type
- Query posts from a child taxonomy term id
- get_terms() duplicate first term of a custom taxonomy
- Count Number of Posts in Taxonomy Term in Last 24 Hours
- How can I reduce amount of ifs and else ifs in this specific block of code?
- Echo custom taxonomy slug
- Admin (All posts) stop responding problem
- Remove a href from this code
- How to get posts that contain multiple terms from multiple taxonomies?
- Cannot delete or edit a single term in a custom taxonomy, taxonomy name is wrong?
- How to check if a post has at least 2 terms from a custom taxonomy attached?
- How best to store data (URLs and IDs) extracted from posts and pages using custom taxonomies
- Get name of taxonomies of current page
- delete term from taxonomy and assign in new one
- export and import taxonomy terms from one taxonomy to another
- Find terms in a custom taxonomy based on the hirearchy
- Wp_query…a type of term a different div
- Adding Child Terms Programatically – No Warning but No dice either
- Show single Child Category on Custom Post
- Get 1st parent category id from post
- Set post terms by term id
- using wp_insert_term to create custom terms for a custom taxonomy from frontend form,
- Display term picture of each post in a loop
- Get Terms of custom Taxonomy of products with certain Product Category
- Problems using get_the_terms in a plugin
- add pagination in wordpress page template
- WordPress taxonomy terms archive template help
- wp_insert_post not adding taxonomy (using wp_set_object_terms)
- Filter “get_terms” query
- Show message if term slug changed
- generate random slug when adding taxonomy
- WordPress search form and search result through ACF field in custom taxonomy
- Custom post type term names with ampersand in the term name
- If page is a taxonomy do X, if is a term, do Y
- Getting the parent terms adds additional empty markup [closed]
- Custom taxonomy list in two columns
- get_terms returns array starting at 4
- get multiple values from $_GET from multiple checkboxes
- Get post terms with hierarchical relationships
- Unable to display the post titles in a drop down
- Taxonomy archive link from term id
- How can I get the term_id from the action hook ‘set_object_terms’?
- Taxonomy Child Not Updating Unless I Click Update Twice
- post_type_link not working for posts without terms