• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Get YouTube Views Data For Use In Genesis

This tutorial provides the code which enables you to display YouTube views per video in WordPress or any Genesis child theme using custom fields like this :

To do this, you’ll need to use Google Developers API Manager for Credentials.

The API supports several types of API keys. If the key type that you need does not already exist, create an API key by clicking Add credentials > API key and selecting the appropriate key type which is browser keys.

Create and use a browser key if your application runs on a client, such as a web browser.

In this case, we’ll create a browser key.

  1. Add Credentials
  2. Create a New Project
  3. Create Credentials

Copy your API key and swap out the xxxxxxxxxxxx with your API key in the code below :

Register for full access

Video

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems