Skip to content

Fetch your 10 latests Gists and display them using a shortcode. This repository is a basic WordPress plugin created to illustrate a tutorial about remote requests and HTTP calls in a WordPress environment.

Notifications You must be signed in to change notification settings

psaikali/25304-wordpress-http-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to use WordPress HTTP API to make remote requests

Fetch your 10 latests Gists and display them using a shortcode.

This repository is a basic WordPress plugin created to illustrate a tutorial about remote requests and HTTP calls in a WordPress environment.

Its main function is to:

  • fetch the latest 10 gists of a GitHub user,
  • save these gists in the option table,
  • display this list of gists via a shortcode.

Usage

Use the following shortcode anywhere in a page/post content:

[gists user="username" amount="10"]

…to display the last 10 Gists from the GitHub username user account.

Read the blog post →

About

Fetch your 10 latests Gists and display them using a shortcode. This repository is a basic WordPress plugin created to illustrate a tutorial about remote requests and HTTP calls in a WordPress environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages