HeroThemes Tutorial: Creating a search widget using the WordPress REST API

Following on from Heroic Tutorial: What you need to know about the new WordPress REST API, this article covers how to use the WordPress REST API to create a widget that can search an external WordPress website and display the results in the widget.

Once you are through the tutorial, I’m sure you will agree that the WordPress REST API is pretty cool! Enjoy 🙂

You can read the full article here

The code for the tutorials can be found on Github here.

HeroThemes Tutorial: What you need to know about the new WordPress REST API

The launch of the REST API for WordPress was big news this year, as it gets rolled into core from version 4.4. and onwards it is important to understand what this means for plugin and theme developers. Exciting stuff! 🙂

In this article I explain why this development is huge for WordPress, provide a primer on the REST API and show you how to use it to simplify the process of communication between WordPress and other apps.

The end result is a small widget to display the latest posts from an external WordPress website.

I hope you enjoy it 🙂

The full article can be found here: What you need to know about the new WordPress REST API

The code for the tutorials can be found on Github here.

HeroThemes Tutorial: Restricting Access to WordPress Pages & Creating a Members Area

This article for HeroThemes is again a continuation of the previous two “HeroThemes Tutorial: Using the KnowledgeBase templating system & theme integration” and “HeroThemes Tutorial: Integrating Heroic Knowledge Base with WooCommerce“. This time adding more value by creating private content as well. Something that is especially useful if you want to provide premium content only available to those people that have purchased certain products.

This article covers:

  • The difference between password protected and private pages (and where the two solutions fall short)
  • A 2-min hack to create a simple Members Area on your WordPress site (without using a plugin)
  • Getting your knowledge base articles to show up in your Members Area (this section is for you if you use the KnowAll theme or Heroic Knowledge Base solution)
  • Some free plugins that will help you control access to your site’s pages, posts, and other content

The end result of the article is creating a members area that can include content from the Knowledge Base plugin.

I hope you find it useful! 🙂

The full post can be read here: HeroThemes Tutorial: Restricting Access to WordPress Pages & Creating a Members Area

The code for the tutorials can be found on Github here.

 

HeroThemes Tutorial: Integrating Heroic Knowledge Base with WooCommerce

Introducing my next article for HeroThemes. This article has taken what was covered in the first article and moved forward to take a look at how the Heroic Knowledge Base plugin could be integrated with WooCommerce to create Frequently Asked Questions for each product. Something that’s always useful! 🙂

Although the subject is about integrating the KnowledgeBase plugin the focus of the article is on how to integrate content into WooCommerce and therefore could be used in lots of different scenarios. Techniques covered include

  • Using Advanced Custom Fields to select content to display on product pages
  • Looking at the WooCommerce templating system,
  • How to add the selected content to templates,
  • Adding the selected content using and hooks and filters instead.

final-faqs-672x532The end result of the article is creating a new tab on each product page that includes your custom content.

This article is quite in depth, and covers a lot of information and therefore assumes a good knowledge of WordPress, theme development and especially knowledge hooks and filters.

I hope you find it useful! 🙂

The full post can be read here: Integrating the Heroic KnowledgeBase Plugin with WooCommerce

The code for the tutorials can be found on Github here.