Search only working on front page (index) , not working on other pages

Currently your form looks like: <form id=”search-query”> <p class=”in-english”><a href=”http://localhost/hermodswp/?page_id=76″>Information in English</a></p> <div class=”search-box”> <div> <label class=”screen-reader-text” for=”s”></label> <input type=”text” value=”sdf” name=”s” id=”s” style=”width: 293px;”> <input type=”submit” id=”searchsubmit” value=”Sök”> </div> </div> </form> Try adjusting your submit action to point to your home_url(). action=”<?php echo home_url(); ?>” You can edit the page in Chrome to see … Read more

Add custom query vars to pretty permalinks

Use add_rewrite_rule to capture the url and convert to params internally. http://example.com/page{p}/t/{t} to http://example.com/?p={p}&t={t} Add to your function.php or in a plugin. <?php if ( ! class_exists( ‘SimpleRewrite’ ) ): class SimpleRewrite { const ENDPOINT_QUERY_NAME = ‘page’; const ENDPOINT_QUERY_PARAM = ‘__rewrite_page’; // WordPress hooks public function init() { add_filter( ‘query_vars’, array ( $this, ‘add_query_vars’ ), … Read more