emangham
Forum Replies Created
-
Forum: Plugins
In reply to: [Force Login] Redirect doesn’t work (‘my_forcelogin_redirect’)Apologies, I’ve only just noticed your post about what the
v_forcelogin_redirectfunction actually does… That would explain why it doesn’t work as I hoped.Yes I am wanting my users to login on a custom ‘/login/’ page, as opposed to WordPress standard login. Is there a way to do this that will ensure Force Login still works as desired?
Thanks so much for your guidance and patience!
Kind regards,
- This reply was modified 9 years, 5 months ago by emangham. Reason: Spelling error
Forum: Plugins
In reply to: [Force Login] Redirect doesn’t work (‘my_forcelogin_redirect’)Hi @kevinvess,
I shall try switching themes. In the meantime, the only thing related to
login_urlinfunctions.phpthat isn’t Force Logins’ redirect and whitelisting is below:/** * Redirect user once Logged In **/ function redirect_login_page() { $login_page = home_url( '/login/' ); $page_viewed = basename($_SERVER['REQUEST_URI']); if ($page_viewed == "wp-login.php" && $_SERVER['REQUEST_METHOD'] == 'GET') { wp_redirect($login_page); exit; } } add_action('init','redirect_login_page');Even if I remove this however, it still doesn’t work.
The code above just redirects users once they have successfully logged in.
Thanks again
Kind regards,
Forum: Plugins
In reply to: [Force Login] Redirect doesn’t work (‘my_forcelogin_redirect’)Hi @kevinvess,
I tried deactivated all but Force Login and still the issue persists, it directs to:
http://project-name.dev/wp-login.php?redirect_to=http%3A%2F%2Fproject-name.dev%2FI even tried your last solution, and that didn’t work either
Thanks so much for the help so far
Forum: Plugins
In reply to: [Force Login] Cannot access plugin Settings when it is activatedForum: Plugins
In reply to: [Location "Nav Menu" for ACF] How to display field data?Doesn’t matter! After some digging, I found how to do it. Thanks!
<?php $menu = wp_get_nav_menu_object ( 'header-navigation' ); $menu_items = wp_get_nav_menu_items( $menu->term_id ); ?> <?php foreach( $menu_items as $menu_item ) { ?> Name <?php get_field( 'additional_field', $menu_item->ID ); ?> <?php } ?>Forum: Plugins
In reply to: [ACF: Google Map Extended] Oops! Something went wrong.BUMP. I have the same issue, any resolution?
Forum: Plugins
In reply to: [BackUpWordPress] No new backup files anymoreHi, I’m having the same issue! When I run a backup (automatic or manual) it does not appear in “No backups completed” nor does it create a file! :O
Thanks
Forum: Fixing WordPress
In reply to: IF on latest postActually, I didn’t know next_post_link/previous_post_link exists! Is it possible to only get the URL though? I ask because they need to sit inside an anchor.
Like next_post_link_url…
Your get_adjacent_post solution works though! 🙂
Thanks keesiemeijer!
Forum: Fixing WordPress
In reply to: IF on latest postI need it to be something like:
IF LATEST POST AMONGST SIBLINGS {
<?php echo get_permalink(get_adjacent_post(false,'',false)); ?>}
and
IF OLDEST POST AMONGST SIBLINGS {
<?php echo get_permalink(get_adjacent_post(false,'',true)); ?>}
At the moment they display even if they are the latest/oldest post, and instead of only going to siblings, they go to any page.
Thanks in advance
Forum: Fixing WordPress
In reply to: IF on latest postHi Jose, thanks for this. I inserted this code onto my page inside <?php…?> tags but that didn’t output anything.
Forum: Fixing WordPress
In reply to: IF post is inside a specific categoryLegend, thank you!
Forum: Fixing WordPress
In reply to: Add thumbnail to 'my wp_list_pages' with limit and excludeJacob, you sir are fantastic. Thank you.
Forum: Plugins
In reply to: [Country Specific Menu Items] Not workingSeems to be working now! This was the issue: https://wordpress.org/support/topic/settings-seem-not-to-be-saved-no-changes-in-menu
Forum: Fixing WordPress
In reply to: Category.php page isn't working, it redirects to Posts pagePLEASE DELETE/CLOSE THIS. RESOLVED.
Thanks!