dmcknight
Forum Replies Created
-
Forum: Plugins
In reply to: [The Events Calendar] Event Schema is not showing (using Yoast integration)@gugaalves thank you. This is great!
One more question regarding virtual events. Google requires a “location” property, including for virtual events. Is there a way to get the
virtualLocation
location attribute set per their recommendation?
https://developers.google.com/search/docs/appearance/structured-data/event?authuser=1#structured-data-type-definitions"location": [{ "@type": "VirtualLocation", "url": "https://myeventuste.com/" },
Forum: Plugins
In reply to: [The Events Calendar] Event Schema is not showing (using Yoast integration)@gugaalves thank you for the update. Unfortunately nothing has changed on our end. As you can see from examining the source at https://altinity.com/events/osa-con-2023-bigger-better-and-accepting-talk-proposals/ the ‘type’ is still set to Webpage instead of Event. Please advise on anything we can do to help troubleshoot this issue.
Using TEC Version 6.2.8.2
Yoast Premium Version 21.6All object and CDN caches are cleared.
Forum: Plugins
In reply to: [The Events Calendar] Event Schema is not showing (using Yoast integration)@gugaalves I uninstalled TEC and installed v6.2.8 but it still shows WebPage for the type. I’ve double checked everything and cleared all caches.
"@type":"WebPage"
Should I also revert my Yoast version?
- This reply was modified 1 year, 3 months ago by dmcknight.
@serg999 I found that if you “group” a kadence block (or many blocks) it will be wrapped inside a wordpress block, then ultimate member restrictions will work. I know in some cases this might affect layout. Hopefully UM can get this updated, perhaps with an addon, or instructions on how to manually add Kadence blocks to the list of items we can restrict.
- This reply was modified 1 year, 6 months ago by dmcknight.
@tonmoy, the v2.7.8 update message still had the same issue.
Awesome Thanks!
I hope this helps:
PHP Fatal error: Uncaught Error: Call to undefined function ULTP\\str_contains() in /nas/content/live/ahanaio/wp-content/plugins/ultimate-post/classes/Initialization.php:709\nStack trace:\n#0 /nas/content/live/ahanaio/wp-includes/class-wp-hook.php(305): ULTP\\ULTP_Initialization->in_plugin_settings_update_message(Array)\n#1 /nas/content/live/ahanaio/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)\n#2 /nas/content/live/ahanaio/wp-includes/plugin.php(470): WP_Hook->do_action(Array)\n#3 /nas/content/live/ahanaio/wp-admin/includes/update.php(587): do_action(‘in_plugin_updat…’, Array, Object(stdClass))\n#4 /nas/content/live/ahanaio/wp-includes/class-wp-hook.php(305): wp_plugin_update_row(‘ultimate-post/u…’, Array)\n#5 /nas/content/live/ahanaio/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)\n#6 /nas/content/live/ahanaio/wp-includes/plugin.php(470): WP_Hook->do_action(Array)\n#7 /nas/content/live/ahanaio/wp-admin/includes/class-wp-plugins-list-table.php(1224): do_action(‘after_plugin_ro…’, ‘ul in /nas/content/live/ahanaio/wp-content/plugins/ultimate-post/classes/Initialization.php on line 709
- This reply was modified 2 years, 4 months ago by dmcknight.
I’m seeing the same issue again. I will look for info in my server logs.
Sure, it’s happening right now on one of our sites.
Video 1 shows how the plugins page abruptly stops rendering on the update message for postx. I also receive a “critical error” email from my hosting provider when I view the plugins page like this.
[video src="https://demo.fosforus.com/postx/screencast-postx-1.webm" /]Video 2 shows how the plugins page renders completely (with subesequent plugins showing) when the postx plugin is deactivated.
[video src="https://demo.fosforus.com/postx/screencast-postx-2.webm" /]Video 3 shows how I fix it, by updating the postx plugin while it is deactivated. After it is updated, I can reactivate it and everything is fine until the next update. It has been happening this way for the last few updates.
[video src="https://demo.fosforus.com/postx/screencast-postx-3.webm" /]@tubescreamer, once you have the ID of your tab, or another way to select it, you can use jquery to assign a behavior to it that is different than the default “show tab” behavior.
@haydnjames, I think this is a limitation of how UM handles custom dropdowns.
SOLUTION: Please IGNORE the Profile form idea above.
The solution to getting your custom fields to save is to include some code that updates them whenever the account page is updated:
/* ensure that the custom fields are updated when the account is updated */ add_action('um_account_pre_update_profile', 'getUMFormData', 100); function getUMFormData(){ $id = um_user('ID'); $names = array('CustomField1','CustomField1'); // ADD THE META-KEYS HERE foreach( $names as $name ) update_user_meta( $id, $name, $_POST[$name] ); }
UPDATE: I’ve found a way to put a functioning profile form into the tab content:
- Using the code above, add
$tabs[800]['YOUR_CUSTOM_TAB']['show_button'] = false;
to hide the default button that appears in your tab. It goes after the line with$tabs[800]['YOUR_CUSTOM_TAB']['custom'] = true;
- Now create a custom profile form template, per the documentation here.
- In your custom template, you can remove the profile form header elements by adding
//
to the beginning of the line withdo_action( 'um_profile_header', $args );
- Then, in WordPress admin, create a new ultimate member profile form with the fields you want users to be able to update.
- In the new profile form, use the Customize this Form option to use your new custom template.
- Now, back in your functions file, where Your Custom Content goes, paste in the shortcode for your new profile form using this format:
<?php echo do_shortcode('[ultimatemember form_id="12345"]'); ?>
(
12345
should be replaced with your new profile form’s id)
CAVEAT: Who can help us get this form to redirect back to the account tab page instead of the profile page?
- This reply was modified 5 years, 4 months ago by dmcknight.
- This reply was modified 5 years, 4 months ago by dmcknight.
- This reply was modified 5 years, 4 months ago by dmcknight.
- This reply was modified 5 years, 4 months ago by dmcknight.
- This reply was modified 5 years, 4 months ago by dmcknight.
- This reply was modified 5 years, 4 months ago by dmcknight.
I’ve successfully added a new tab that displays my desired custom field (a checkbox), but I have two outstanding problems:
- After clicking the submit button, the form alerts that the account has been updated, but the value in the custom field has NOT changed. Is this because this particular custom field is new and not yet added to the users entry in the database?
- Is there a way to change the text on the submit button to something other than the title of the custom tab?
- This reply was modified 5 years, 4 months ago by dmcknight.
The theme is Sage