This topic contains 9 reply and 2 voices, and was last updated by manlioma 9 years, 4 months ago
Viewing 9 Posts - 1 through 9 (of 9 total)
Author Posts
August 31, 2012 at 3:43 pm 634
manlioma Hi, how to display the multiple search queries in a results page ?? the code the_search_query(); doesn't works !! And How I can back to results page from single.php after search ? thanks by
August 31, 2012 at 5:08 pm 635
Tareq Hasan Tareq Hasan

Can you clarify about multiple search queries? According to WordPress, there is only one main search query and you can display that by the_search_query(). If you are referring to display other custom fields and taxonomy inputs, there is no provided way to display the queries, but you can show them by raw php. Something like

And I am not clear about your second question too.

August 31, 2012 at 5:22 pm 636
manlioma manlioma

Hi, so I want to say..
In my form you can search posts in category and price range
In the results page I would to have:
… your Search Result for: ” Category 1″ from “price min” to “price max”

August 31, 2012 at 5:54 pm 637
Tareq Hasan Tareq Hasan

You can try something like that in your result page:

August 31, 2012 at 6:25 pm 638
manlioma manlioma

works !! thank you very much !!!

September 18, 2012 at 9:59 pm 664
manlioma manlioma

Hi Tareq, and what about taxonomy ??

I tryed

$cat = get_term_by(‘id’, $_GET[‘taxonomy_name’], ‘taxonomy’);

but doesn’t work.. any suggestion??

thank you !

September 18, 2012 at 11:05 pm 665
Tareq Hasan Tareq Hasan

try like this:
$tax = get_term_by(‘id’, $_GET[‘tx_TAXONOMY_NAME], ‘taxonomy’);

September 18, 2012 at 11:41 pm 666
manlioma manlioma

I tryed this, but doesn’t work.. ‘COMUNE’ is my taxonomy

$tax = get_term_by(‘id’, $_GET[‘tx_comune’], ‘taxonomy’);
echo “{$tax->name}

September 18, 2012 at 11:54 pm 667
Tareq Hasan Tareq Hasan

$tax = get_term_by(‘id’, $_GET[‘tx_comune’], ‘comune’);
echo “{$tax->name}

September 19, 2012 at 12:11 am 668
manlioma manlioma

nothing new 🙁

Viewing 9 Posts - 1 through 9 (of 9 total)