[SOLVED] Search issues
Posted: Tue Jan 03, 2023 10:32 pm
Hello,
I made a search-page (search.php), for the search results.
Adding this to the index.php page
1. when test the search function, not only the matched page(s) are showing, but also all the other pages showing after the search results.
2. How can i show the search-word on the search.php?
In the url i see this https://mydomain.com/search/my_search_word
That is what i try to do:
Results for MY_SEARCH_WORD
Here you can see my test-website: https://gewoonsimpel.be/search/brood
I made a search-page (search.php), for the search results.
Adding this to the index.php page
Code: Select all
<?php
if($WHERE_AM_I == 'search'){
include(THEME_DIR_PHP.'search.php');
} else {
if ($WHERE_AM_I == 'page') {
include(THEME_DIR_PHP.'page.php');
} else {
include(THEME_DIR_PHP.'home.php')
}
}
?>
2. How can i show the search-word on the search.php?
In the url i see this https://mydomain.com/search/my_search_word
That is what i try to do:
Results for MY_SEARCH_WORD
Here you can see my test-website: https://gewoonsimpel.be/search/brood