qmt_base_url doesn't understand get_page_link( )
-
Hey guys,
I already checked out the URL-filters but the baselink filter doesn’t work correctly in my case. I created a page template which queries all posts if there are no terms selected or for reset. The reset works correctly, but the baselink always produces the empty taxonomy URL and not my given page. Here’s my code:
function my_qmt_base_url() { return get_page_link( 65 ); } function my_qmt_reset_url() { return get_page_link( 65 ); } add_filter( 'qmt_reset_url', 'my_qmt_reset_url' ); add_filter( 'qmt_base_url', 'my_qmt_base_url' );When I hit “Submit” without choosing a term the plugin redirects to:
/?productcapacity=&productcolors=&productfinish=
When I hit “Reset” the plugin redirects to:
/?page_id=65
When I change
function my_qmt_base_url() { return get_page_link( 65 ); }to
function my_qmt_base_url() { return 'http://www.google.com'; }the plugin returns:
http://www.google.com/?productcapacity=&productcolors=&productfinish=
Any ideas?
The topic ‘qmt_base_url doesn't understand get_page_link( )’ is closed to new replies.