I used a workaround for now. I eddited the category_template.php with the str_replace function. The problem turned out to be that the Tag Cloud used diffenten functions than the regular Tags. I just added this:
foreach ( $tags_data as $key => $tag_data ) {
$class = $tag_data['class'] . ' tag-link-position-' . ( $key + 1 );
$a[] = "<a href="" . str_replace("/index.php/tag/","/index.php/search/",esc_url( $tag_data["url'] )) .(...)
}
to wp_generate_tag_cloud() and this:
$the_tags = str_replace("/index.php/tag/","/index.php/search/",$the_tags);
to the_tags(). As stated bevor I’m new to this and I dont think thats the way it should be but it works for now. I used it with the BeTube Theme if anyone wants to use this as well.
Thanks for your answers.
Related Posts:
- Add relevant tag to search results
- The search doesn’t work properly
- How to correctly submit a search form and display the result in an independent page
- Edit tag cloud widget number
- Genesis – Customize search form
- How to automatically apply woocommerce product title to all product images alt tags?
- remove tags from posts in php
- How to exclude pages from the search results
- Modifying widget search box
- Rewriting search and pagination base
- Easy way to process search results before displaying
- How to find objects by terms
- How to create a WP_Query to search the Title or Tag?
- tag search using WP_Query
- How can i display 3 post types in same page?
- show limited tags in an article
- Adjust the results quantity for Search Results page pagination
- display most popular tags in two columns
- How to block specific keywords from searching on WordPress?
- How do I get images (with a thumbnail preview) to show in search results?
- How to add a post or page tag to the list of classes appearing in the body tag’s class attribute?
- Displaying Only Certain Tags in Loop
- query if on page/2/?
- Enhanced WordPress Search
- How do I dynamically generate args for wp_query?
- Highlight Current Tag in wp_tag_cloud
- Must Use Plugin Causing Query Error
- Can I use HTTP POSTs? Is there a better alternative?
- Use wp_get_recent_posts with search term
- If search results empty then execute certain code
- Count the number of times the search form template gets included on a page
- have_posts() execution failure
- esc_url returns incorrect URL
- How to create a linked tag list in my sidebar
- How to do multiple searches (with logical OR) in WP_Query in hook pre_get_posts?
- Change Navigation Bar based on logged in or not
- Can’t search posts using WP_QUERY inside AJAX Function
- Adding country tags automatically
- Only show search results with if current date is between two dates?
- Way to querry data (tags) from a wordpress database?
- WordPress pagination not working with search page
- Input type search in Menu
- How to make a search button that will search my website?
- WordPress Search Results for Multiple Post Types
- WP Query with custom Shortcode
- Customising the search function?
- How to add seperate classes to no-search-result and found-search-result pages on wordrpess search – is_search()
- Custom search results page not working with empty search
- WordPress default Search function inconsistent in WooCommerce Product Titles
- Save Search System
- Seach custom post type posts only by meta fields?
- Search not showing all results
- Autocomplete search box
- Adding Taxonomy Image to taxonomy loop [closed]
- edit search.php to include subdomain posts
- Search Query: how to construct a search string from two select elements?
- Can anyone offer any help with this function?
- If tag equals then show else show
- Way to bulk make all my tags lowercase?
- Pull Tags But Not as Links
- Adding Meta Tags to a Post using its Tags, Excerpt and content
- List posts that don’t have a specific tag?
- Edit the_category (); for a hierarchical display
- Need to put a script above tag in header.php – WP 5.7.1
- Search WordPress using static html page
- Exclude posts with specific metadata from search?
- Search form does not work in my website
- Filtering a function’ output for a new continued function
- Trying to prepend a Hashtag symbol to the_tags links [closed]
- stripping tags from excerpt in WordPress is not working
- How to remove the message ‘We could not find any results for your search’ without changing template files and without adding posts/pages?
- Form search query – displaying ACF “Post Object” field as results
- List post by title length
- How do I remove duplicate users from two merged WP_User_Query objects?
- How to tag the main tag? [closed]
- How do I query a single data value from the wp_metadata table?
- Searching Posts Programmatically in a WordPress Plugin
- Querying for specific tags
- Search only working on front page (index) , not working on other pages
- Live search from database table
- Limit tags shown in post
- How to add Post Tags to a new element in header.php?
- WordPress Search
- WordPress pagination not working in search result page
- Search page results conflicting logic – Search result caching?
- Search.php gets metadata from first post
- Commas in Tag Cloud
- making my own “related pages” / “pages you might like” section
- Getting a WordPress tag to print inside of a traditional php echo
- search and add in wordpress content
- How can I modify this code to make the search box include tags and meta
- Validate search against a list of codes in wordpress
- Free search and custom taxonomy query not providing the same result
- remove specificly the last tag in all posts
- search.php to search only the post title
- How to exclude labels from certain categories in a shortcode?
- Display WordPress search results based on the selected Sub-Category
- WordPress Search Ajax + Isotope + InfiniteScroll
- how can i include post meta in search result
- Highlighting Text in Search Results