Skip to content
Advertisement

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) and a specific field(50)

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

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

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

Advertisement