Forum Replies Created
-
AuthorPosts
-
BrattParticipant
Works like a charm 🙂
BrattParticipantHi!
Sorry, i had totally missed your answer =)
Tried it this morning and it works great as it seams. It gives error if the user’s role has no redirect role.
ERR_TOO_MANY_REDIRECTS
Like admin account but that is something that is acceptable.Your the hero of the year!! Wow, thanks for the exceptionally grate support.
BrattParticipantMuch appreciated ! =)
BrattParticipantIt’s a shared server.
BrattParticipantDo you have any tips for where i can find the setting except contact my hosting company?.
BrattParticipantI diden’t get it to work, does it work for you ?
BrattParticipantI deactivated Wordfence, should be the only plugin that should have some with the cache to do. I will try it as soon as i can 🙂
So glad you are helping me with this!
BrattParticipantThis reply has been marked as private.BrattParticipantThis reply has been marked as private.BrattParticipantSorry, i didn’t think i got this. 🙁
I tried to add this instead but didn’t work at all.
<?php add_action( 'plugins_loaded', 'my_plugin_override' ); function my_plugin_override() { if(is_user_logged_in()) wp_redirect(apply_filters(‘login_redirect’, ‘/’)); else wp_redirect(‘/wp-login.php’); } ?>
BrattParticipant<?php if(is_user_logged_in()) wp_redirect(apply_filters(‘login_redirect’, ‘/’)); else wp_redirect(‘/wp-login.php’); ?> <?php get_header(); ?> <div id="primary" class="row-fluid"> <div id="content" role="main" class="span8 offset2"> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <article class="post"> <h1 class="title"><img class="img-responsive aligncenter title" alt="DSV" src="http://xxxxxxxx.xxx/xxx_b.png"><?php the_title(); ?></h1> <div class="the-content"> <?php the_content(); ?> <?php wp_link_pages(); ?> </div><!-- the-content --> </article> <?php endwhile; ?> <?php else : ?> <article class="post error"> <h1 class="404">Här var det tomt.</h1> </article> <?php endif; ?> </div><!-- #content .site-content --> </div><!-- #primary .content-area --> <?php get_footer(); ?>
BrattParticipantIt didn’t work 100%, it works as long as your not logged in, but if logged in it will not redirect to “login redirect” url. =(
Any spontaneous ides ?, really appreciate the help =)
BrattParticipantWow great, absolutly! 🙂
-
AuthorPosts