Woocommerce login and logout menu options

I'm using WooCommerce with my wordpress site and I want to allow customers to login and logout if they wish so that they can see their account details of what they have ordered. So what I want to...

Gravity forms populate from custom fields

I'm using Gravity Form for event booking. I created Custom Post Types for the events and each event has custom fields with dates, venues etc... How can I populate Gravity form with the custom...

Display Products for Woocommerce

I created a Wordpress page that must display the products that I've created using Woocommerce Plugin. It seems like it has it's own Shop Page so I tried to customize it (it has different...

jQuery Focus on Click

On click, I'm trying to put focus on an input field. I thought it would be as easy as: jQuery('li a').on('click', function() { jQuery('input.s').focus(); }); However, the search input field is...

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...

WordPress 4.4 shortcode texturize issue

Sadly, my plugin stop working now when users update from WordPress 3 to 4.4, the plugin help to embed JWplayer HTML5 player on posts with shortcodes, so with new update the shortcodes not output...

TinyMCE Dynamic Buttons/Methods

I'm attempting to create a Wordpress plugin which allows you to easily add a dropdown menu with items in for inserting shortcodes. To do this, I need to 'hook' into TinyMCE, registering a custom...

Conflict with two jQuery events in widget and menu

I'm working within WordPress and have two menus on a mobile site using viewport media queries to control elements. When viewing the site in 768 wide two mobile menus replace the desktop. To...

Wordpress - Code Snippet Library not working on my theme

Hi I am working on a new Wordpress blog and it for code tutorials so it's very important to have code snippets in it , I tried many plugins but I comfortable with Code Snippet Library The issue is...

wordpress show custom menu in themes style

I have wordpress + woocommerce site which is using Divi theme. All divi pages I built using custom page builder but it canot be used on posts or singe-product.php page. In most of the pages I...

Create defaults to use in return in shortcode - Wordpress plugin

I'm making my first plugin to Wordpress which adds a shortcode that I can use in my header. The plugin integrates with Wordpress option page. All admin related works fine including writing top...

Wordpress: (When Fixing Overlapping Masonry Issue) Encountered unexpected end of file in functions.php

Disclosure: I'm not a programmer, or trained in web design. Please forgive me if this is something stupid. Today I've been trying to fix a problem with overlapping Masonry on my Wordpress.org...

Wordpress - Save values to array upon form submit in admin option page

I have almost done a successful first time plugin, but unfortunately I cannot submit my updated values to the array I've created upon my register_activation_hook. I need some insights in how...

Using Bootstrap within Wordpress admin - a hack by Rush Frisby

Building my first plugin to Wordpress I came across Rush Frisby's Bootstrap hack, so that you can work with Bootstrap within the admin panel, without conflicting with the Wordpress admin core...

how to add a top margin (CSS) to a custom menu item in wordpress

I have an avatar in my header (inserted with a shortcode as a custom menu item). Unfortunately it sits directly under the top of the container (header) and I can't figure out the CSS to nudge it...

Integration Nightmares | Wordpress | Advanced Custom Fields | TM Extra Product Options | WooCommerce Integrations

I need some severe help moving forward with a clients site. We are trying to make it easy for him to edit his menu items by giving him one area in a field group with Custom Fields plugin to...

Custom hierarchy WordPress menu - show only child pages or current active page

I am trying to create custom code for complex WordPress menu. Let's assume that i have menu wordpress menu structure like this - Granchild is last node, there is no more children nodes: Parent1 ...

Display only “completed” items on account page Woocommerce

I have customised the "My Account" area of Woocommerce to have a custom page on the side menu entitled "Collections". The following shortcode displays all orders on the page function...

Page not found in WordPress Pagination

On this page, if you click on pagination, it shows 404 not found. Here is what I have done, From Functions.php, <?php /*------------------------------------*\ Custom Post...

Wordpress custom supports for custom post types

I'm just using register_post_type to generate my new post type 'gcg_block' and generate the ui menu in the admin page. Using add_post_type_support for 'author' gives me the column Author in my...

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...

WordPress Get Current Logged-in users post or posts with edit link

Hi Want to show custom post/posts of logged in user as list with Edit button with shortcode if possible After trying and searching so much I found one solution but it show link of posts in menu as...

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...

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...

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...

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...

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...

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 ...