Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
559 views
in Q2A Core by
Is there any way to display questions that contains 2 different tags ? For example the following URL will display all questions that tagged under "SEO".

http://www.question2answer.org/qa/tag/SEO

But How can i display questions that Contain the tag "SEO" AND the tag "GOOGLE" ??

I want to create some links for example Google SEO in my site and point it to all questions that contain the tags "SEO" and "GOOGLE".

@sama55 i need your advices and your experience.

Best Regards
Q2A version: 1.7.4
by
Any idea @samma55 @pupi ?

1 Answer

+2 votes
by
selected by
 
Best answer

The core won't allow you to do that. In short, the core ORs the words taken from the input string. I have explained the process in detail here: http://www.question2answer.org/qa/56561

If that hasn't scared you, then you can either modify the function I linked in the other answer or write a search module, in order to avoid modifying the core, which is the best approach. Either way, the most important thing is to keep the final SQL query as efficient as possible and try not to break the different search criteria and ordering of the core.

If modifying the query is out of your reach then you can consider this plugin: http://www.question2answer.org/qa/54072

...