jchambo
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7 - Dynamic Text Extension] Update WordPress 6.9?@tessawatkinsllc – any plans to fix this any time soon?
No response from the DEV?
Perfect! It works now – I had to enable
Widget Support > Post Type > Poststhen just disableAuto-Insert > Post Type > PostsCheers!
Turns out the only way to get the sidebar TOC to work with the shortcode, is to ALSO set the Auto-insert inclusion rules to Posts. Ideally, I wouldn’t have them in both spots, I would only like it in the sidebar.
Sorry I had to remove the last image. Here is the updated screenshot of what I had to disable:
Looks like this was the culprit, but for now, I deactivated the plugin entirely.
@gripgrip – This was the first time using this specific code snippet, so no it is not defined anywhere else and yes I am using the latest WPCode Lite version. I’m willing to bet it didn’t error out for you since you likely don’t have the plugin installed when adding it?
For what it’s worth I created a completely fresh WordPress install on TasteWP with barebones, installed Filter Everything Pro, added this one single Code Snippet and it still errors out with the above errors.
When activating via the toggle, I get this:

I viewed the error log but I get the same above errors. This does not happen with the Code Snippets plugin as mentioned above as well. So, the issue lies with WPCode Lite and Filter Everything Pro somewhere. Maybe you and the plugin developer @stepasyuk can come together to figure it out for your users.
- This reply was modified 4 months, 3 weeks ago by jchambo.
For reference, this is being placed in the “Run Everywhere” location.
Forum: Plugins
In reply to: [Prismatic] Inline Code Option Available?I just figured this out. You can leverage inline code style by adding a class to the <code>.
Example, by default, when using the <code> option in WordPress for text, it doesn’t add a class of any kind. Just switch over to the “Code” tab when editing text (a blog post for example) and add a class in the following format:
<code class="language-css">Example text</code>Just change the above language to that of which you are using:
- HTML:
<code class="language-html"> - CSS:
<code class="language-css"> - JavaScript:
<code class="language-javascript"> - Python:
<code class="language-python"> - C++:
<code class="language-cpp"> - Java:
<code class="language-java"> - PHP:
<code class="language-php"> - Markdown:
<code class="language-markdown">
@madhavipekamwar – Did you ever figure this out? Seeing this myself.
@rankmathsupport – Appreciate the fix, but the actual fix was never shared or a “how-to” apply the fix on our own on other impacted websites.
Can you share exactly what was done and how we can do this on our own in detail please?
- This reply was modified 6 months, 1 week ago by jchambo.
This sounds oddly similar to my issue. My cron jobs are all running fine but Rank Math’s Analytics job appears to have completely died and will not run on its own.
@tessawatkinsllc – I was able to accomplish this with some custom code with a Code Snippet thanks to ChatGPT.
Here it is for reference:
add_filter('wpcf7_mail_components', function ($components, $contact_form) {
if (!isset($_POST['staff_id'])) {
error_log("🚫 staff_id not found in form submission.");
return $components;
}
$staff_id = absint($_POST['staff_id']);
if (!$staff_id) {
error_log("❌ Invalid staff_id submitted.");
return $components;
}
$email = get_field('staff_email', $staff_id);
if (!is_email($email)) {
error_log("❌ Invalid staff_email for post ID $staff_id.");
return $components;
}
// Combine default "To" and dynamic staff email
$default_to = $components['recipient'];
$components['recipient'] = $default_to . ', ' . $email;
error_log("✅ Email sent to: $default_to and $email");
return $components;
}, 10, 2);Pair the above code with adding a hidden field in the CF7 form:
[hidden staff_id default:shortcode_attr]Ah, bummer. Appreciate the reply though!
@mdashikul – Is it possible to pull a dynamic “Email” field that gets populated onto the Post, into a CF7 form that is on the same Post, into the “Mail > To” field?