This is probably super simple but I just cant seem to figure it out. How can I pass the current Wordpress page title into this code? Below is a snippet from Formidable Forms WP plug-in which basically prints statistics from forms within my website. In this case, the # of entries for a specific form (55jqi) and a specific field(50)
Tag: wordpress
WordPress ‘Function is not defined onclick’
I am currently working on a custom Wordpress plugin. I have to use this specific folder structure: plugins/ myplugin/ pdf.php plugins/ myplugin/ inlude/main.js pdf.php looks like this: but whenever i click on the button i get the error: Uncaught ReferenceError: make_PDF is not defined even when i have a function called make_PDF in my main.js file. anyone knows how to
JS to track WooCommerce Events
We can use the hooks to catch the events in the woocommerce like : Is there any similar thing that can be done in JS? I need to find similar JS events for Cart Viewed, Product Searched …etc I am using these to track add to cart and remove from cart, Answer Was found the bunch of codes in assets/js/frontend
Uncaught ReferenceError: _xxx is not defined – WooCommerce add_to_cart hook
I am using a SERVER-SIDE TRACKING for my woocommerce site. In there I added a JS Tracking code snippet provided by company to the wp_head using , and for all other events. All other events are working fine, but when I tried to fire the add to cart, it show the error : Uncaught ReferenceError: _jts is not defined at
Custom CSS not loading on WordPress
I am building a custom WordPress theme and am having issue with linking to my CSS. Using <?php get_template_part( ‘template-parts/template-header’ ) ?> at the top of all of my templates (such as my homepage, which lives at template-parts/template-homepage, I am grabbing the header I have built. In the head of my header HTML I have <link rel=”stylesheet” href=”homepage.css”/>. To ensure
Lazy loading for WordPress external api get request
I have an endpoint that takes a long time (about a minute) to give a response. I want to call this endpoint from a Wordpress website while wp_remote_get and wp_remote_retrieve_body are running in the background, but I always get the page loaded only after the request is finished. Is there a way I can add some lazy process so that
Custom validation Message not working for empty field + Contact from 7
Am using Contact Form 7 latest version (5.6.3) on our site and when we try to add custom validation using hooks, it doesn’t work for empty field validation. The hooks work fine when we roll back the plugin version to 5.5.6.1. Here am attaching the screenshot of the forms. this is a screenshot for version 5.6.3 https://snipboard.io/cSusk3.jpg and this is
Delete post from WordPress if is deleted from API [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 3 months ago. Improve this question Does anyone know how to delete post from Wordpress if not exist in API using PHP? I have script that import cars from API to
Plugin Javascript with Source URL’s For Images Using Wrong Directory
This is tough and would really, really love some help. I have a plugin that has a JavaScript file with an array of sources (URL’s) that points to a “texture” directory in the plugin for images, but keep getting 404 errors, because instead of searching images in /website/wp-content/plugins/die/textures it looks for website/textures, or website/post-name/textures and never the plugin. These work
How to output foreach inside echo
I need to output inside echo foreach to output the terms that belong to this post. How can i do this? The code I wrote is not working. Answer You have to use foreach block and print inside the block