• Hi there, finally a great and clean plugin for post previous/next navigation. Thank you!!!

    I would love to use your plugin in the frontend, like so:

    
    if( class_exists('c2c_AdminPostNavigation') ) {
    
      global $post, $post_ID;
      $post_ID = $post->ID;
    
      $post_statuses = array( 'publish' );
      c2c_AdminPostNavigation::$post_statuses_sql = "'" . implode( "', '", $post_statuses ) . "'";
    
      $prev = c2c_AdminPostNavigation::previous_post();
      $next = c2c_AdminPostNavigation::next_post();
      
    }
    

    The only thing I had to change in your plugin to make this work was to make the variable $post_statuses_sql public. Does anything speak against this?

  • The topic ‘Make your plugin available from the frontend’ is closed to new replies.