Daan Kortenbach
Forum Replies Created
-
If it could rename the Featured Image to parent post, that would be easier and quite helpfull in most situations.
Forum: Plugins
In reply to: [Redirect to login if not logged in] how could I allow pages to not redirect?You’re welcome, let me know if it worked for you.
Forum: Plugins
In reply to: [Redirect to login if not logged in] how could I allow pages to not redirect?Hi hybridixstudio,
Compare the original code:
add_action( 'parse_request', 'dmk_redirect_to_login_if_not_logged_in', 1 ); /** * Redirects a user to the login page if not logged in. * * @author Daan Kortenbach */ function dmk_redirect_to_login_if_not_logged_in() { is_user_logged_in() || auth_redirect(); }
With this adjusted code with added conditionals:
add_action( 'parse_request', 'dmk_redirect_to_login_if_not_logged_in', 1 ); /** * Redirects a user to the login page if not logged in. * Added is_page() conditional * * @author Daan Kortenbach */ function dmk_redirect_to_login_if_not_logged_in() { // If on this page, do not redirect if ( is_page( 'change-me-to-page-slug' ) ) return; // If on this post, do not redirect if ( is_single( 'change-me-to-post-slug' ) ) return; // Conditional(s) above were false, redirect is_user_logged_in() || auth_redirect(); }
You can fork the plugin at Github (https://github.com/daankortenbach/redirect-to-login-if-not-logged-in) and change the code to your liking.
Also, here is a gist with the changed code: https://gist.github.com/daankortenbach/9428467
Forum: Plugins
In reply to: [Google App Engine for WordPress] Working for images but not ImporterThanks for updating the plugin. Looking forward to the blog post.
Forum: Plugins
In reply to: [BackWPup – WordPress Backup & Restore Plugin] PHP Warning with WP-CLIHere are the fixes for:
1) deprecated warning
2) Error: Parameter errors: unknown –jobid parameter1) backwpup.php:
102 - WP_CLI::addCommand( 'backwpup', 'BackWPup_WP_CLI' ); 102 + WP_CLI::add_command( 'backwpup', 'BackWPup_WP_CLI' );
2) inc/class-wp-cli.php:
12 - * @synopsis start --jobid=<ID of job to start> 12 + * @synopsis start --jobid=<ID>
Forum: Plugins
In reply to: [BackWPup – WordPress Backup & Restore Plugin] PHP Warning with WP-CLIWhat is the status of this? Have a pressing need ??
Anyway I can help out?
Why would you ever want to hide your affiliate id’s? The whole point of affiliate links is that your affiliate ID gets tracked so you get paid if someone follows the link and buys something. It sounds to me that you need to read the manual from your affiliate program and read up on what SEO is and how it can work for your benefit.
Simple Urls only hides the affiliate link on your site. If a user clicks on it, they get redirected to the original affiliate link (this is good because your affiliate id gets tracked). It has nothing to do with cloaking, which is a bad practice on its own. You do not want to cloak. You want great SEO and Google not punish you for having affiliate links. That is why you should use Simple Urls, not for cloaking.
Addition: I actually forked the plugin on Github to send a pull request with the fix. But the Github version is outdated.
Forum: Plugins
In reply to: [Google App Engine for WordPress] Working for images but not Importer– Run a clean WordPress in GAE with the import plugin installed (under Tools > Import).
– Try to import an export file from another WordPress install that has images in posts and uploaded.
– Fail.Forum: Plugins
In reply to: [Google App Engine for WordPress] Working for images but not ImporterSame problem. Any news on this?
Forum: Plugins
In reply to: [Redirect to login if not logged in] How do I uninstall?That sounds like a caching issue. Glad you figured it out.
Forum: Fixing WordPress
In reply to: Main $wp_query returning WAY too many posts.I’ve just ran into the same thing. Raw query resulted in two posts, actual WP_Query results 10 posts. It was those sticky posts.
Thanks for figuring this out guys, saved me a couple more hours ??Forum: Plugins
In reply to: [Nginx Helper] Feature Suggestion for Additional Purge OptionsBeing able to do
rm -r *
from a button on a website is probably not a very smart move, but we could get in contact with the nginx developers and to discuss our needs.Forum: Plugins
In reply to: [Reliable Twitter] [Plugin: Reliable Twitter] Stopped working? Here's a fix…Tnx ??
FYI: I also had to paste that link + acountid into the Custom RSS field in the widget.