Skip to content

Instantly share code, notes, and snippets.

View gist:144758f71fff3263463ba89fc70e72d3
import { gql, useQuery } from '@apollo/client';
const GET_SHOP_NAME = gql`
products(first: 10) {
edges {
node {

Step 1

If you have not created categories for each Army/Faction that you want to display, do that now. Ensure that you add a category photo to these, no larger than 240x240 for best results, as this is where it will pull those sub-pages from.

Step 2

Enter the Edit Code section of your Theme Screen shot of Edit Code

Step 3

Create a new template for a page and call it list-40k

View horaire.php
function paroisse_horaire() {
$labels = array(
'name' => _x( 'Horaires', 'Post Type General Name', 'sgbcards' ),
'singular_name' => _x( 'Horaire', 'Post Type Singular Name', 'sgbcards' ),
'menu_name' => __( 'Horaires', 'sgbcards' ),
'name_admin_bar' => __( 'Horaire', 'sgbcards' ),
'archives' => __( 'Archive d\'Horaire', 'sgbcards' ),
'attributes' => __( 'Item Attributes', 'sgbcards' ),