This file contains 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 | |
namespace KnowTheCode; | |
$main_st_homes = array( | |
1058 => array( | |
'floor1' => array( | |
100 => array( | |
'name' => 'Smith', | |
), |
This file contains 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 | |
namespace KnowTheCode; | |
$fruit = array( | |
'apples', | |
'oranges', | |
'pears', | |
); | |
$members = array( |
This file contains 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 | |
namespace KnowTheCode; | |
$members = array( | |
array( | |
'first_name' => 'Tonya', | |
'Twitter' => 'hellofromTonya', | |
'email' => 'hellofromtonya@knowthecode.io', | |
), | |
array( |
This file contains 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 | |
namespace KnowTheCode; | |
function get_post_name( array $post ) { | |
return $post['post_name']; | |
} | |
$post = array( | |
'post_name' => 'PHP is_array - When', | |
); |
This file contains 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
Here are the instructions for you: | |
1. Watch the video that walks you through this | |
2. Create a new folder in your theme's `lib` folder called `structure`. | |
3. Inside of `structure`, add the `post.php` file below. Just copy and paste it into that folder. | |
4. In your `functions.php file`, paste this line of code: `include( CHILD_DIR . '/lib/structure/post.php' );`, which loads up your new `post.php` file. | |
5. Now in your `style.css` file, you need to find the following: | |
a. find here the `button` style is and then add `.more-link,` above it. Watch the video to see where to do this. | |
b. find the `button:hover,` and then add this above it: `.more-link:hover,`. |
This file contains 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 | |
/** | |
* Home page (posts page) | |
* | |
* @package Altitude | |
* @since 1.0.0 | |
* @author hellofromTonya | |
* @link https://knowthecode.io | |
* @license GNU General Public License 2.0+ | |
*/ |