use BTF with events
-
Hello Jonathandejong,
I posted you there is a few weeks for this topic and with wpmudev we find a solution, with code that you know, but after update this code is wrong, the good code is now :
function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } add_action( 'template_redirect', 'template_redirect_cb' ); function template_redirect_cb() { $url = curPageURL(); if ( strpos( $url,'events/events/' ) !== false ) { $u = str_replace( "events/events/", "blog/events/", $url ); wp_redirect( $u ); } }
??
https://www.ads-software.com/plugins/beautiful-taxonomy-filters/
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘use BTF with events’ is closed to new replies.