how to insert shortcode into wordpress menu

I have made a menu item with this code. The menu item shows up but the shortcode output is not there. Is there something I can add or a different method that will do this. I have added also in...

How to use wc_customer_bought_product function to check if customer bought product in an array

First of all, I am a beginner and new to php so please forgive my ignorance. I asked my first question on stackoverflow today and somebody was kind enough to provide a great solution, so I am...

How to properly implement a custom ajax

In order to keep the logotext <div class="small-7 medium-4 columns logo"> and the menu <nav class="pagedMenu" role="navigation">,without clipping on page refresh or while the content is loading...

How can I add subtotal and delivery details to the minicart menu in Woocommerce?

In the minicart menu on my woocommerce site I've got it showing the products in the users cart, the total and the checkout button. I would also like the menu to show the subtotal and the delivery...

Wordpress plugins won't deactivate?

I haven't been able to deactivate any plugin for 3 days. When trying to deactivate a plugin, Wordpress shows me the classic success message, but the plugin stays activated. I also have troubles...

Is it possible to insert shortcode inside Header menu or top-bar menu in wordpress?

I have made a simple shortcode for my wordpress theme. I'm trying to align it on right-side above the corner of my page. Is it possible to insert shortcode function.php? I want to place my...

Avada Wordpress wp_remote_get()

Hello All I am at a loss of what to do on our word press site it is saying wp_remote_get() failed. Some theme features may not work. Please contact your hosting provider and make sure...

Wordpress Post/Page Editor not Working - Cannot Read Property Error

We have a few sites using Wordpress 4.9.6. When trying to edit/add a post or page I see this: And then upon inspecting the console, everything seems normal. However, when I click on the text...

PHP Wordpress Plugin Variable Not Echoing out Inline Style

I am developing a Wordpress Plugin and It has a shortcode that I am using to print out content to a page/post. In my plugin file I have initiated all menu pages and settings, I have 2 settings in...

I am trying to add some sort of widget or menu to the top of all of my Wordpress sites pages

I am currently working on a Wordpress site, one of the tasks was to create custom post location post types which I was able to do. I then used a filter I wrote in functions.php to include a...

get dynamically changed iframe content

After dynamically changing the iframe content, how do I get the updated content? var target = document.getElementById('page_demo').contentWindow.document.body.innerHTML; Will give me a copy of...

Wordpress Customize not working - load-scripts.php errors

When I try to customize my Wordpress theme, I get a blank screen. I disabled plugins and the error was still there - it's the theme, I tried a different theme and the issue was gone. I ran the JS...

Woocommerce shortcode to display products with stock equal or above the value stated (Updated again)

I'm trying to create a custom shortcode that will allow me to display products with stock levels equal to, or higher than a set numerical value. So ideally I could place a shortcode along the...

Wordpress - How to pass data to shortcode via form

I have custom post type called "forms", and has a sub-menu page which contains form, to add a name. add_action('admin_menu', 'form_builder_add'); function form_builder_add() { //create new...

Insert custom classes into WYSIWIG output rendered by tinyMCE via jQuery (handling images with captions in Wordpress)

Preface / the initial problem: I want users to be able to apply custom classes to images in Wordpress posts using the visual editor (i.e. the "classic editor" / tinyMCE - I can't use Gutenberg...

Display Elementor page to customer in Woocommerce My-Account

I have Woocommerce (Subscriptions) and Elementor. I'm trying to add a page/content within the Myaccount area of Woocommerce - new navigation menu item. Creating the endpoint and navigation menu...

Wordpress JS error when trying to add a new category to the product admin page

To summarise the issue, in the Wordpress back end go to products, add new. When i click "+ Add new category", fill in the box and click the "add new category" button nothing happens. The new...

11ty shortcode to output a menu

I'm trying to construct a 11ty universal shortcode that outputs a menu when passed a collection. (I'm not entirely sure this is the best may to output a menu.) So far I've...

How to use variation and add-to-cart button outside woocommerce loop

I'm using woocommerce for my website, but as I only have one main product and two accessories (related products), I don't need a classic shop page, neither single-product pages for each of my...

Use primary site contact form 7 post type across WordPress multisites

I am currently using the Contact Form 7 plugin on a Worpdress Multisite. My goal is to use only the primary site contact form 7 post from the main site wp_post table across all sites. Basically to...

Wordpress customizer preview doesn't refresh functions.php

So I ran into a issue where the customizer preview doesn't fully refresh. Only when I manually refresh the page I see my changes. Some of my code to help explain below. For my customizer settings...

How to create post taxonomy dropdown shortcode?

I am trying to create a dropdown shortcode for WordPress categories and tags taxonomies. I can seem to get the options to appear, but nothing happens upon selection. I've managed to modify a code...

echo $user->roles[0]; in WordPress menu navigation

At the beginning I want to say that all the code presented below works well if put in right environment. I only have an issue with php in wordpress menu navigation that seems not to be able to...

How to get the order id in a custom function

I am setting up a WooCommerce payment plugin. I have created a payment field that should display the order id before payments are received. I have seen this answer...

How to pass JS user input to a function in Wordpress child theme functions.php using AJAX?

I need the data from var search_value in msearch.js to pass to the php variable called $woot in the child theme functions.php file so it can be the returned value for wtfwoot() and therefore used...

What is the difference between wordpress widgets and block

I have started learning wordpress recently. I have started from version 5 with this new Gutenberg editor which introduced Blocks. I am little confused regarding difference between this new Blocks...

Can I use the WP_List_Table class to render tables on a page?

I am currently using shortcodes to display a list of items obtained from a table and displaying it on a page of my website but since the list of information is very large, I want to add a page and...

Product filters for Woocommerce and how to show them on mobile

Platform: WordPress Theme: Hello Page-builder: Elementor Pro Webshop platform: Woocommerce I want to filter on: attributes and price. I started with using built-in filters from Woocommerce. They...

Woocommerce my account custom page - page not found 404 (permalinks problem)

I'm trying to create a custom page in My Account section of Woocommerce, but when I open this page I get 404 (Page not found). I tried to re-save (refresh) the permalinks in Settings ->...

Uncaught TypeError: $(...).appear is not a function

Can someone help me , I am getting script error in browser console. I upgrade jquery but still it is same . Error reads like.... Uncaught TypeError: $(...).appear is not a function ...