Slider from different widgets

Found a (half)solution. Slick is very helpful. I integrated this in a template. The data now is static so that need to be changed. I created a sidebar but now I need to loop through the widgets. I think I’m trying to use this Still any ideas/thoughts are more than welcome!

Create a dynamic buddupress tab

You can’t use an object variable, $user->display_name, in a string. And why would you want a tab that links back to the member being viewed? You’re already viewing that member. This will provide the url of the displayed member: bp_displayed_user_domain() So you could do this: function redirect_user_to_tab3(){ bp_core_redirect( bp_displayed_user_domain() ); } If you just want … Read more

WooCommerce – Print Processing orders [closed]

Here’s the solution: Remove the SKU table header Add (SKU) to the Product header Product (SKU) pass false, true in email_order_items_table function $order->email_order_items_table(false, true) This is not the visual result you were expecting, but it works and it shows the SKU. The second parameter in email_order_items_table indicates whether to show the SKU or not.

Ajax call URL 404’ing when pushed to staging server

Take a look at wp localize script. It’ll allow you to encode your url into a separate javascript object before your script is loaded. get_template_directory retrieves the absolute path to the directory of the current theme. Use it in case your WP install directory is different than your local development. The theme directory can also … Read more

INCOMING: Wall of code for form and $_POST, not updating custom field’s value

Turns out the second form needs its own nonce and updated the code in the header of the page to do something if only the second form is submitted. See new code: <?php $lucs_stored_meta = get_post_meta($post->ID); // salt shaker, drawing straws, randomness function lucs_random_thumbnail() { $lucs_random_image = rand(0,1); if ($lucs_random_image == 0) { $lucs_thumb_ra = … Read more