jamesryancooper
Forum Replies Created
-
Forum: Plugins
In reply to: [Login Logout Register Menu] Extracting URL from ShortcodeActually, we need to add a check to make sure that the shortcode is returning something or an error will be thrown if we provide loadHTML an empty variable. So, here’s the updated function with the check:
// Function to extract the logout url from the login-logout-register-menu plugin shortcode function get_logout_url() { if ( !shortcode_exists( 'llrmlogout' ) ) { return; } $dom = new DOMDocument; $logout_html = do_shortcode( '[llrmlogout]' ); if ( !empty($logout_html) ) { $dom->loadHTML($logout_html); $node = $dom->getElementsByTagName('a')->item(0); return $node->getAttribute( 'href' ); } else { return; } } add_shortcode('get-logout-url', 'get_logout_url');
- This reply was modified 4 years, 5 months ago by jamesryancooper.
Forum: Plugins
In reply to: [SearchIQ - The Search Solution] 502 Error After Most Recent Plugin UpdateThe issue was sitewide.
My hosting company pulled some reports from their New Relic monitoring tool and stated that it was an external API call to api.searchiq.co and suggested that you may have been having server issues.
I disabled the SearchIQ plugin and the issue resolved. I have not yet tried to re-enable it.
Best Regards,
Ryan
Forum: Plugins
In reply to: [Cooked - Recipe Management] Settings Menu Option DisappearedThat worked! Thanks!
Great! Thank you!
Ok. Great. Thank you!
Forum: Plugins
In reply to: [Cooked - Recipe Management] Any plans to add a meal planning feature?You can directly access the theme here: https://neptune.pinsupreme.com/. You’ll have to register as a user to access the meal plan feature. When you navigate to each recipe, it gives you the option to add the recipe to a meal plan. There is a screenshot of the meal planner on this page: https://themeforest.net/item/neptune-theme-for-food-recipe-bloggers-chefs/12915290?s_rank=1
Any ETA on this? It’s getting annoying to have to remove the title tags every time. Thank you.
Thank you @arunbasillal!
Just updated. Thanks for the getting it fixed!
@boxystudio That’s great to hear.
Forum: Plugins
In reply to: [Cooked - Recipe Management] Critical bug – hundreds, thousands of concepcts@boxystudio I believe he is describing the same issue that I’ve been posting about. The creation of duplicate posts when adding the shortcode to a recipe that has not been published yet. I consider this a major issue because it has the potential to really mess up someone’s website.
Forum: Plugins
In reply to: [Cooked - Recipe Management] Issue When Clearing Cache@boxystudio I just wanted to let you know that this resolved on it’s own after I deactivated/reactivate and flushed all my caching plugins.
@boxystudio Actually, I have revisions disabled. The duplicate post that is created actually appears in my blog feed.
Basically, if I create a recipe post with the Cooked shortcode and let’s say, for example, it has the slug /brownies-recipe/, upon publishing it, that single post will appear in my blog feed (as expected). However, once the post is visited a new duplicate post is generated with the slug /brownies-recipe-2/ and every time someone visits the post, a new duplicate post is create /brownies-recipe-3/, /brownies-recipe-4/, etc. I had upwards of 60 duplicates appearing in my blog feed before I was able to narrow it down to the Cooked shortcode. Once I removed the shortcode, the duplicates stopped being created. I’ll have to screen capture the next time it happens so that you can see what’s going on.
My best guess is that the Cooked plugin is possibly having an issue with some other plugin that I have installed, but I’ve not been able to determine whether that is the case.
@boxystudio I am having this same issue with my opt-in forms. When the switcher is active, anytime someone changes focus when filling out an opt-in form, the page reloads.
I have the issue when adding the [cooked-recipe] shortcode to a post. I did reactivate the plugin and insert the generated shortcode into a new recipe. The same issue occurred but I was able to resolve the issue when I created a new post that did not contain a shortcode. The only thing that I can conclude is that it seems that as long as the post containing the shortcode is not the newest post, then the issue will not present itself. However, when the post that has the shortcode is the newest post then anytime someone pings that post, a duplicate of that post is generated in the database. Very odd behavior.