Overview: In this tutorial I'll explain how you can list posts under a category on a WordPress page with the same name as that of the category. We will use Custom Page Templates to achieve this. There may be times when you do not want to display a blog or have the post based layout, and only use Pages. Yet, you would and should harness the power and flexibility of posts. For example, all posts under a category Workshops will show up on a WordPress page created …
Blog
How to save WooCommerce custom checkout fields with the wordpress user meta
Overview: In a previous post - How to reconfigure and rearrange WooCommerce checkout fields – Part 1, I explained the process of creating custom fields that can be used on the WooCommerce checkout page. In this tutorial I'll explain how you can associate the custom fields to the user meta. By default simply saving the order meta does not associate the custom woocommerce fields with the user meta. The user meta is the information associated with the WordPress user or the customer which you …
Continue Reading about How to save WooCommerce custom checkout fields with the wordpress user meta →
How to reconfigure and rearrange WooCommerce checkout fields – Part 2
Rearranging WooCommerce Checkout Fields To rearrange the woocommerce checkout fields which include any custom fields we will need to override form-billing.php by copying it out from the from the WooCommerce plugins directory - wp-content/plugins/woocommerce/templates/checkout to a directory under our theme wp-content/themes/yourtheme/woocommerce/checkout/. I have already explained this bit in Part 1 of this tutorial. The following snippet worked for my setup of custom …
Continue Reading about How to reconfigure and rearrange WooCommerce checkout fields – Part 2 →
How to reconfigure and rearrange WooCommerce checkout fields – Part 1
In this tutorial I'll talk about reordering WooCommerce checkout fields using php which also include custom WooComerce fields. The solution had worked for me for WooCommerce 2.x and works on the current version 3.0 as well Overview One of my projects required memberships and concert seats to be sold online using WooCoomerce. But I won't be discussing that today. Instead I'll be discussing something that was eventually very simple but I had almost given up on. The requirement …
Continue Reading about How to reconfigure and rearrange WooCommerce checkout fields – Part 1 →
Using ACF – Bidirectional Relationships to show linked Custom Post Type in Posts – Part 2
Overview In Part 1 we created a bidirectional relationship between a Custom Post Type - Videos and a Post and also between Videos and another Custom Post Type -Events. So eventually a post about a press conference can have video(s) or Events can have Video(s). Let's get started Below an event or post that has a linked video, I want to show the video's meta which is present in custom fields (created by ACF) and custom taxonomies (created using the CPT UI). In our example a video has the …
Using ACF – Bidirectional Relationships to show linked Custom Post Type in Posts – Part 1
Overview This tutorial will cover the concept of bidirectional relationships using ACF to link a Custom Post Type and a Post in WordPress. We will then display additional information under a post (or a CPT) if it has a link to a CPT. Currently bidirectional relationships are not created by default in the ACF plugin (v 4.4.11). However, until this happens ACF has provided a code snippet that you need to put in your functions.php …