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
# ATS system - which one, how it works | |
tailor keywords to match site | |
# apply to linked in | |
# use PDFs | |
# streamline, simplify | |
# important to have no resume | |
volunteer exp | |
interests |
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
/* ################# header | |
* Plugin Name: My Plugin Name | |
* Description: A description of my plugin... | |
* Version: 1.0.0 | |
* Author: Your Name | |
* License: GPL-2.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt | |
*/ | |
if ( ! defined( 'WPINC' ) ) { | |
die; // so the plugin file can't be accessed directly in browser |
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
class Dog { | |
public $name; | |
public $breed; #######properties | |
public $colour; | |
public function bark() { | |
return 'Woof!'; | |
} | |
public function walk() { | |
return 'Happy dog :)'; | |
} |
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
js | |
wrap jquery inside functions | |
// | |
$jquery needs to be inside // | |
(blur / focus) |
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
appearance ###########Adding a new archive page (products) | |
menus | |
products (screen options) | |
view all | |
archives | |
add | |
rename - shop | |
url - product | |
(create archive-product.php) | |
get $terms - taxonomy - product-type |
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
<img src= "<?php echo get_template_directory_url() . '/images/inhab-logo.svg' ?>" |
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
Use WP_Query when you need to create a paginated query | |
Use get_posts() to create static, additional loops (e.g. a list of a few recent posts on a homepage, etc.) | |
############## DEFAULT LOOP | |
<?php if ( have_posts() ) : ?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<h2><?php the_title(); ?></h2> ###### POST TITLE | |
<?php the_content(); ?> ###### POST CONTENT | |
<?php endwhile; ?> |
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 inhab_dynamic_css() { | |
if ( ! is_page_template( 'about.php')) { | |
return; | |
} | |
$image = CFS()->get('about_header_image') ; | |
if (! $image) { | |
return; |
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
Create page from page.php | |
Create page in pages | |
Label Template in PHP file (comments in top) | |
Create fields, choose page template (links to page.php template label) | |
Go to page, select template file, get the 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
VERY IMPORTANT | |
<?php | |
/** | |
* Template Name: About Page | |
* | |
* @package RED_Starter_Theme | |
*/ |