This is a small SEO checklist I made for myself. I've updated it using this helpful blog post by Brian Dean, among other resources.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Taxonomy Loop | |
| /** | |
| * Get the Custom Taxonomy | |
| * For a list of other parameters to pass in see link below | |
| * @link https://developer.wordpress.org/reference/classes/wp_term_query/__construct/ | |
| * For a list of get_term return values see link below | |
| * @link https://codex.wordpress.org/Function_Reference/get_term |
This is a compilation of the websites, plugins and apps I use to design and develop a website.
Websites
Color Design
Patterns and Textures
Typography
Fonts
Icons
Stock Photos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Register custom rest fields | |
| */ | |
| add_action( 'rest_api_init', 'register_custom_fields' ); | |
| /** | |
| * Register rest fields and endpoint | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- breadcrumb --> | |
| <?php | |
| $theParent = wp_get_post_parent_id(get_the_ID()); | |
| if ($theParent) { ?> | |
| <div class="metabox metabox--position-up metabox--with-home-link"> | |
| <p><a class="metabox__blog-home-link" href="<?php echo get_permalink($theParent); ?>"><i class="fa fa-home" aria-hidden="true"></i> Back to <?php echo get_the_title($theParent); ?></a> <span class="metabox__main"><?php the_title(); ?></span></p> | |
| </div> | |
| <?php } | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Customizer: Sanitization Callbacks | |
| * | |
| * This file demonstrates how to define sanitization callback functions for various data types. | |
| * | |
| * @package code-examples | |
| * @copyright Copyright (c) 2015, WordPress Theme Review Team | |
| * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer) | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /////////////////////////////// | |
| // HOW TO SANITIZE RADIO BOX // | |
| /////////////////////////////// | |
| function theme_slug_customizer($wp_customize) { | |
| //your section | |
| $wp_customize->add_section( | |
| 'theme_slug_customizer_your_section', | |
| array( | |
| 'title' => esc_html__('Your Section', 'theme_slug'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: Front End Posting | |
| Description: Create posts from the front end | |
| Author: David Perálvarez | |
| Version: 1.0 | |
| Author URI: https://silicodevalley.com | |
| */ | |
| // Front end submission form |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Add our Custom Fields to simple products | |
| */ | |
| function mytheme_woo_add_custom_fields() { | |
| global $woocommerce, $post; | |
| echo '<div class="options_group">'; | |
| // Text Field |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function($) { | |
| 'use strict'; | |
| jQuery(document).ready(function() { | |
| //Load all posts | |
| asr_ajax_get_postdata(-1); | |
| $('.asr_texonomy').on('click',function(){ | |
| var term_id = $(this).attr('data_id'); |