Skip to main content

Unanswered Questions

2,245 questions with no answers
2 votes
0 answers
3k views

WooCommerce: update custom fields after checkout validation failure

In my project I'm customizing some of the WooCommerce features. My "shipping methods" are: 1. delivery 2. take away I also added a custom field in the checkout page that is a <select> populated ...
2 votes
0 answers
168 views

How to get sidebar's content inside admin-ajax?

I'm using a modal to display some content via an admin-ajax request. Now I have problem outputting the content of a sidebar (text widgets, used for adding advertisement scripts). When I directly use ...
2 votes
0 answers
4k views

Add attribute / custom attribute to product in woocommerce

I have products from some API and want to insert these products. I was able to insert products and use already existing attributes ( or added by UI ). Adding new term (My Color) to the existing ...
2 votes
0 answers
1k views

Add multiple attributes to product from php

I'm trying to update a WooCommerce product entry with data from an API, where the values from the API match taxonomy terms I've created in my WordPress site. For most fields this works, but I have ...
2 votes
0 answers
385 views

Access/update database with jQuery

Goal: Update wpdb each time a user clicks on a specific button. Every time a user clicks on a button, I need jQuery to run a function that will update my wordpress database. As far as I understand, ...
2 votes
0 answers
903 views

running wp-cron.php using php not wget

I operate some servers which have a few WordPress websites on them. I was having some issues with the cron jobs being triggered too often or not enough so I replaced all of them with crontab entries, ...
2 votes
0 answers
1k views

load next and previous posts by Ajax and URL update

In my wordpress site, I have next/prev link in single.php , I want to ajaxify them and i found below script and it's working but it's not changing the new post URL(URL not updaing). After 2 hours ...
2 votes
0 answers
490 views

Programmatically create menu with custom link

I am creating pages and assign them to a menu with custom link. Pages are properly created and menu is properly created, too. However, custom links are not given to the menu items. What I want is to ...
2 votes
0 answers
56 views

How to iterate through database until it find a match

How can I loop through my Wordpress query, and check each posts if one meta_value of meta_key user_ip_reservering match the $ipadres Code $args = array( 'post_type' => 'reserveringen', )...
2 votes
0 answers
323 views

Order Wordpress Custom Taxonomy Pages & Pagination Not Working

I'm using this code to enable custom post types and taxonomies on my site (I've also included this below to save linking out) https://gist.github.com/kasparsd/2924900 The code works great for the ...
2 votes
0 answers
117 views

I am having a problem with form updating/editing Wordpress post on the frontend

I am having a bt of a problem trying to allow users to edit their own posts (custom post type) on the front end. the form is being displayed and errors are displayed but the form is not updating the ...
2 votes
0 answers
931 views

woocommerce target button with class after ajax update

I'm working on a eshop using woocommerce. I have an add to cart button with class "single_add_to_cart_button", and a variations select list with 3 sizes. When I select a size which is unavailable, ...
2 votes
0 answers
81 views

allow users to publish without admin approval

i have a website for ads, when a user want to add an ad he have to login then added his ad from frontend, but this ad will need an admin approval, i want to add an option to my theme that allow my ...
2 votes
0 answers
40 views

How to filter out post type meta?

I have used this code to filter out the post type and it works fine when showing filtered results: add_filter('wpseo_title', 'vehicle_listing_title'); function vehicle_listing_title( $title ) { ...
2 votes
0 answers
2k views

WP_Query & AJAX

When calling wp_query via AJAX and passing a category ID and search parameter, the query does not return any posts. On page load, the query runs fine, which runs the same query. If I add these ...

15 30 50 per page
1
3 4
5
6 7
150