enickdavis
Forum Replies Created
-
Forum: Plugins
In reply to: [Force Login] Whitelist URLI’m having a similar issue, but may have a flaw that I’m not seeing as well. (I am using the plugin, and it works beautifully!) I am trying to whitelist a directory (plans). I’m placing the below in my child theme’s functions.php file…
/** * Bypass Force Login to allow for exceptions. * * @param bool $bypass Whether to disable Force Login. Default false. * @return bool */ function my_forcelogin_bypass( $bypass ) { // Get visited URL without query string $url_path = preg_replace('/\?.*/', '', $_SERVER['REQUEST_URI']); // Allow any page URL within the specified directory if ( in_array( 'plans', explode( '/', $url_path ) ) ) { $bypass = true; } return $bypass; } add_filter( 'v_forcelogin_bypass', 'my_forcelogin_bypass' );
Thank you for any insight or pointing out my mistake.
Forum: Fixing WordPress
In reply to: wp-admin not working after site url changeWebbettle thanks for your response. Unfortunately, I haven’t renamed the folder.
Forum: Fixing WordPress
In reply to: wp-admin not working after site url changeThanks Tara.
I have attempted to change the site url in the past and just attempted again. When I change to https://www.example.com, the admin is inaccessible as described above. When I change it back to dev.example.com I can then access the backend, but certain plugins such as a sitemap XML generator no long function properly.
I would love to be able to use https://www.example.com/wp-admin for backend access
Forum: Fixing WordPress
In reply to: Child Theme "Broken"Never thought that would be an issue. I will check with the developer. Thanks
Forum: Plugins
In reply to: [Contact Form 7] Red Box Failure MessageThank you! I had an error in my return address (extra space that I missed). All is solved. Thanks again for you help!
Forum: Plugins
In reply to: [Manual Related Posts] Code making content disappearNot sure why it happens on mine. I am using a template with a specific post type, so it may be playing tricks on it. thanks for the quick responses.
Also, I have worked the multiple instances of the related plugin. My WordPress and PHP skills are on the amateur side, so I probably took the long way to get a solution. Here’s what I did…
I unzipped your plugin and simply searched and replaced all variations of $related, $rel and $r (i think that was everything) with a new variation such as $ship, $shp and $s. I also renamed the files that contained “related” in the name. I zipped them up and installed through WordPress. I created 2 extra versions, so I have 3 running on my site.
I inserted the appropriate code containing the new $ship, $shp and $s on the template and it worked.
Here is is in action: https://rc.allinclusiveforless.com/wordpress/?dir-item=viking-europe-rhine-basel-amsterdam-2015
Forum: Plugins
In reply to: [Manual Related Posts] Code making content disappearResolved. Excellent Support!
Forum: Plugins
In reply to: [Manual Related Posts] Code making content disappearJust added
<?php global $related; ?>
and it worked. I can now see the title of the related article and the rest of the content!Forum: Plugins
In reply to: [Manual Related Posts] Code making content disappearSorry, nothing related in the error log. PHP version is 5.4.22
Forum: Plugins
In reply to: [Manual Related Posts] Code making content disappearIn View Source, nothing shows below where the code should be. You can view the source here. the code is placed just under the closing
</article>
tag. I have also tried placing it in other areas. Anywhere I place it, everything below the code disappears. Am I supposed to wrap the code with anything else?Also, assuming I can get this up and running, it is possible to have 2 instances on the same post/page? I would like one section to have related ships and another for optional extended vacations. I know I would have to manually select the related content for each, I would just like to separate the related content for a cleaner look.
thanks for the prompt response. The true sign of a great developer.
Forum: Plugins
In reply to: [Manual Related Posts] Code making content disappearAlso, the related item is not showing.