Skip to content

Instantly share code, notes, and snippets.

View usm-interactive's full-sized avatar

Scout Digital usm-interactive

View GitHub Profile
@usm-interactive
usm-interactive / 404.php
Created October 20, 2021 18:14
404 Page for Prana
<?php
/**
* The template for displaying 404 pages (not found)
*
* @link https://codex.wordpress.org/Creating_an_Error_404_Page
*
* @package Prana
*/
get_header();
@usm-interactive
usm-interactive / page.php
Created June 21, 2021 21:25
Prana Page Builder with post_password_required() builtin
<?php
/**
* The template for displaying all pages
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site may use a
* different template.
*
* @link https://codex.wordpress.org/Template_Hierarchy
@usm-interactive
usm-interactive / module-button-cta.php
Created June 17, 2021 16:16
Consistency of Coding Syntax & Logic Efficiency
<?php
$link_one = get_sub_field('link_one');
$link_two = get_sub_field('link_two');
$cta_title = get_sub_field('cta_title')
?>
<?php if (!$link_two) : ?>
<div class="container">