Looking for support? You can access the support system via your account.
Ralph Schroeder
Forum Replies Created
-
Ralph Schroeder in reply to:
Search Term not showing on Custom Archive Page(Private) February 17, 2020 at 5:35 pm #234157Thank You, that worked.
Ralph Schroeder in reply to:
Search Term not showing on Custom Archive Page(Private) February 17, 2020 at 5:08 pm #234132this specific search was Caracas, yes.
Ralph Schroeder in reply to:
Search Term not showing on Custom Archive Page(Private) February 17, 2020 at 5:01 pm #234128It really doesn’t give me anything different then what i see above.
It shows what I queried but I simply need to display the Name of the City…when i attempt to use the first query i showed above to show _sfm_city it doesn’t display anything. How do i get the name of the city to display:
[_sfm_city] => Array ( [name] => [singular_name] => [all_items_label] => [type] => post_meta [active_terms] => Array ( [0] => Array ( [name] => Caracas [value] => Caracas ) ) ) )
<?php //Get a single fields values using labels //replace <code>1526</code> with the ID of your search form global $searchandfilter; $sf_current_query = $searchandfilter->get(1902)->current_query(); echo $sf_current_query->get_field_string("_sft_city"); ?>
Ralph Schroeder in reply to:
Search Term not showing on Custom Archive Page(Private) February 17, 2020 at 4:24 pm #234105So i was able to use your documentation to grab the following query output: However, when i attempt to call the field _sfm_city it does not display anything. This is a Meta Key, does that matter? My attempt to display it is listed below
Array ( [_sft_specialties] => Array ( [name] => specialties [singular_name] => Specialty [all_items_label] => All Items [type] => taxonomy [active_terms] => Array ( [0] => Array ( [id] => 355 [name] => Test Matter Type [value] => test-matter-type [count] => 1 ) ) ) [_sft_providers-category] => Array ( [name] => Categories [singular_name] => Categories [all_items_label] => Categories [type] => taxonomy [active_terms] => Array ( [0] => Array ( [id] => 68 [name] => Patent Search [value] => patent-search [count] => 1 ) ) ) [_sft_operatingcountries] => Array ( [name] => Operation Countries [singular_name] => Operating Countries [all_items_label] => All Operating Countries [type] => taxonomy [active_terms] => Array ( [0] => Array ( [id] => 145 [name] => Denmark [value] => denmark [count] => 1 ) ) ) [_sfm_city] => Array ( [name] => [singular_name] => [all_items_label] => [type] => post_meta [active_terms] => Array ( [0] => Array ( [name] => HARARE [value] => HARARE ) ) ) )
`<?php
//Get a single fields values using labels
//replace1526
with the ID of your search form
global $searchandfilter;
$sf_current_query = $searchandfilter->get(1902)->current_query();
echo $sf_current_query->get_field_string(“_sft_city”);?>
Ralph Schroeder in reply to:
Search Term not showing on Custom Archive Page(Private) February 14, 2020 at 5:33 pm #233988Additionally – Here is the link to run a search: https://heliosipdirectory.com/test/
-
AuthorPosts