Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

How to display questions that contains 2 different tags ?

+3 votes
125 views
asked May 3 in Q2A Core by UI-UX-DESIGNER
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
commented May 4 by UI-UX-DESIGNER
Any idea @samma55 @pupi ?

1 Answer

+2 votes
answered May 5 by pupi1985
selected May 7 by UI-UX-DESIGNER
 
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

...