• Resolved patlol

    (@patlol)


    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 );
    	}
    }

    see https://premium.wpmudev.org/forums/topic/events-plugin-with-beautiful-taxonomy-plugin?replies=7#post-843280

    ??

    https://www.ads-software.com/plugins/beautiful-taxonomy-filters/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jonathandejong

    (@jonathandejong)

    Hi Patlol,

    Thank you very much for this update! To clarify, this is the new code after the latest update of events+?
    May I ask in which version this changed as I think I should keep both code examples in case people run an older version ??

    Thread Starter patlol

    (@patlol)

    Hello Jonathandejong,

    I’m not sure it’s the events+ update the cause of this change, there are a lot of update on wordpress and I’m not notice it right away but it can only come from an updated BTF or events+ I have not updated the wp core.

    Have you make a BTF update few week ago ?

    Thread Starter patlol

    (@patlol)

    Perhaps you can contact Ashok of wpmudev team.
    My topic on wpmudev is again open

    Plugin Author Jonathandejong

    (@jonathandejong)

    I have updated the plugin but not the way the permalinks work.. unless the events+ posttype doesnt show up in the BTF settings for post types?

    I’ll see if I can figure it out from the changelog of events+ ??

    Can pronamic ideal payment be implemented in Events+ plugin?

    https://premium.wpmudev.org/project/events-plus/

    Plugin Author Jonathandejong

    (@jonathandejong)

    Hi Anajnap,

    this is the wrong forum to ask that. Ask the devs at events+ instead ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘use BTF with events’ is closed to new replies.