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
- How to exclude pages from the search results
- 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
- 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?
- query if on page/2/?
- Enhanced WordPress Search
- Must Use Plugin Causing Query Error
- Can I use HTTP POSTs? Is there a better alternative?
- Use wp_get_recent_posts with search term
- 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
- Adding country tags automatically
- How to add seperate classes to no-search-result and found-search-result pages on wordrpess search – is_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
- Can anyone offer any help with this function?
- If tag equals then show else show
- Way to bulk make all my tags lowercase?
- Adding Meta Tags to a Post using its Tags, Excerpt and content
- List posts that don’t have a specific tag?
- Need to put a script above tag in header.php – WP 5.7.1
- Exclude posts with specific metadata from search?
- Trying to prepend a Hashtag symbol to the_tags links [closed]
- 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?
- Querying for specific tags
- Limit tags shown in post
- 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
- Free search and custom taxonomy query not providing the same result
- remove specificly the last tag in all posts
- WordPress Search Ajax + Isotope + InfiniteScroll
- My worpress search page is showing no results
- Replace a single variable with add_filter
- Build A Custom SQL Query for WordPress Search
- Include custom fields in search
- Using a new WP_Query inside the loop
- Change ajax live search results
- meta_query search names when they have middle initials
- How to add Text before my Custom Term and hide it when empty
- Showing search results on a page
- Help me understand how Search function works using dynamic_sidebar()
- What is the correct way to search 3 custom fields only in WordPress?
- How do I create a WP endpoint that retrieves all custom post types that have a tag?
- Searching a custom WP table and displaying results in an HTML table
- Search only for posts with specific metadata?
- Search function not working
- View tag description on page
- My search results are only showing 5 posts?
- Display tag links on archive page?
- How to associate dynamic PHP page for chosen WordPress tag?
- Get a list of tags present in a paged front page
- How can the searchform.php know if it’s used on a registered sidebar id ‘sidebar-1’ or ‘sidebar-2’?
- How can I include tags in wordpress search without a plugin
- How can you disable search for non-members on your WordPress website.
- Search results template listing all posts
- Notify admin (by email) if post added with specific tag
- Display product attributes for current product
- How to only fetch certain Tag ID’s
- Search bar for page that searches only particular page IDs
- Limit Search Queries per IP per Day
- A Space being added to url generated by custom plugin
- Different layout on search page depending on category post
- Make the text field in search form optional
- Using tag to output text in Genesis?
- Is there a way to randomize and connect a background and header image?
- WordPress – show all posts + ones with specific tag
- Search box background on a different page template
- Search through documents folder
- Trying to put a search page on site
- split searchresults into different topics?
- Search result page – display values from the result’s metaboxes
- how to loop through blog posts in php
- Search results always returns “No results” no matter what
- Dynamically added text at bottom of article – non searchable by PHP code
- Woocommerce – Include custom user meta in order ‘filter by registered customer’ Ajax search
- Product Search in search.php