Skip to content

Tag: wordpress

WordPress page title fxn in echo p

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) an…

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 funct…

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/front…

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 bui…

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 sc…

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