We have a custom product filter to display vehicles on a /products page.
The filter uses Javascript and the JS code is place directly on the /products page content editor. The JS code is also placed on the page.php template that was created exclusively for the /products page.
We also have a function that placed in the functions.php file to display the custom filter on the /products page.
function custom_rewrite_basic() {
add_rewrite_rule('products/(.*)', 'index.php?page_id=104937/$matches[1]',
'top');
}
add_action('init', 'custom_rewrite_basic');
The product page works, the filter works, but the header and footer no longer show up on the /products page. I have checked the page templates that are used for the /products page, and they do call the header and footer.
Any ideas why the header and footer no longer show up and is there a way to "force" them to show up?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744989991a4604844.html
评论列表(0条)