-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
42 lines (39 loc) · 1.65 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<head>
<?php wp_head(); ?>
<link rel="stylesheet" href="<?php get_stylesheet_directory_uri(); ?>/style.css">
<link href="https://fonts.googleapis.com/css?family=Fira+Mono:400,700" rel="stylesheet">
</head>
<body>
<div class="container">
<h1 class="title">This is a blank WordPress site that spits out JSON for Headless CMS goodness.</h1>
<h3 class="subtitle">Here are some endPoints you might like:</h3>
<?php
$url = site_url() . '/wp-json/wp/v2/';
$urlACF = site_url() . '/wp-json/acf/v3/'
?>
<ul class="list">
<li>
<a href="<?= $url . 'settings'; ?>" class="link">Site settings</a> – get site settings (site title, description, etc.) <em>NOTE: Need Authentication to View.</em>
</li>
<li>
<a href="<?= $url . 'pages'; ?>" class="link">Pages</a> – get pages
</li>
<li>
<a href="<?= $url . 'posts'; ?>" class="link">Posts</a> – get all the posts
</li>
<li>
<a href="<?= $url . 'types'; ?>" class="link">Post Types</a> – get all the post types
</li>
<li>
<a href="<?= $urlACF . 'posts'; ?>" class="link">ACF: Posts</a> – get advanced custom fields for pages
</li>
<li>
<a href="<?= $urlACF . 'pages'; ?>" class="link">ACF: Pages</a> – get advanced custom fields for pages
</li>
</ul>
<div class="credit">
Theme by <a href="https://twitter.com/ARasheedPhoto" rel="noopener" target="_blank">Adam Rasheed</a>
</div>
</div>
<?php // include('wp-logic.php'); ?>
</body>