All Questions
59
questions
0
votes
1
answer
56
views
search filter for search and tag page doesn't work
Here is my search function in functions.php
function search_filter($query) {
if ( ! is_admin() && $query->is_main_query() ) {
if ( ($query->is_tag() ) || ( $query-> ...
1
vote
2
answers
57
views
Search for portfolio tags & mixing portfoliotags and post tags
I have been trying to filter my search result without success.
Here is my function in functions.php
I want to retrieve only post and portfolio posts (no pages).
Below is the code I found on your ...
0
votes
0
answers
164
views
Show Posts via cat+cat in URL that are in both Categories doesn’t work
it seems like i am the only person on this planet currently experiencing this issue. When i search for www.gooloo.de/category/balea+vegan, it should only show posts, that are in BOTH categories, but ...
0
votes
1
answer
734
views
Include results with tags relevant to the search keyword with JSON rest API v2
Wordpress doesn't natively search for tags so I need to install WP Extended Search and add post_tags as one of its parameters so whenever I search for keywords natively, posts with that tag will ...
0
votes
0
answers
56
views
Best approach to make all tags searchable by the wordpress search function
I have over 2000 tags on one of my sites and I like them to be searchable by the wordpress search function.
The problem is if I use a plugin, the time it takes to search them all is enormous.
I think ...
0
votes
1
answer
93
views
Return all Tags and Categories in Separate List
I am using the snippet below to create a shortcode to get all tags for a search in a separate list including tag count. Eg search for 'foo' and it returns all tags for all posts that match the search '...
0
votes
1
answer
171
views
Return All Tags from Search Result in Separate List
I am trying to create a list of tags on top of my search results page that returns all tags and tag count for all tags that are included in the search results.
For example, I search for 'Foo' and it ...
1
vote
0
answers
22
views
Site search needs to find posts for category topic AND Tag or keyword thats not in the post
So I have about 20 categories on the site, one of them is Press Releases. I've been asked to make sure that posts in the press release category only show up in that single category BUT can can also be ...
0
votes
1
answer
355
views
See if a post has a specified tag
I'm trying to see if a post (thru id) has a specified tag
if has_tag( $tag = 'Cat', $post = $post_id ) {
$taganimal = "Cat";
}
I tried this, but it just crashes the site .
Got idea ...
0
votes
1
answer
80
views
Redirect wordpress search query if its a tag
i have modified this function to make it redirect search query if it a tag
example if searchQuery='football' then redirect to /tag/football/
function redir_search($a) {
if (is_search()) {
...
1
vote
2
answers
458
views
Search the product by tag or category not working
I am working on search. I am trying to search the product by tag or category. I tried below code but it's not working. I am getting
Nothing Found
Also title and content is also not working.
...
2
votes
1
answer
415
views
Making a list of post tags in string
I am trying to push post tags to the search index of the WPFTS plugin in order to search my posts by tag names. To achieve this, I have to generate a string with all tags. Here is what I tried:
...
0
votes
1
answer
44
views
Wordpress Search by tags
How can I set by using functions.php, Wordpress search that the searching be only by tags.
0
votes
2
answers
3k
views
How to search from specific post type with tags?
UPDATED:
I have a Custom Post Type Commercials. This post type has a title and a video id. I want to search from this specific post type. Right now it returns result which matches the titles only, I ...
0
votes
2
answers
356
views
Include future posts in tags and in search
I am using something like this to query and display future or scheduled posts on my homepage:
<?php query_posts('post_status=future&posts_per_page=10&order=ASC'); while ( have_posts() ) : ...