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
| $('#quantity input').change(function() { | |
| $('#product-quantity').val($(this).val()); | |
| }); |
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
| $('button').click(function() { | |
| var divContents = $('#price').html(); | |
| console.log(divContents); | |
| $('#product-price').val( $('#price').html() ); | |
| $('#product-name').val( $('#name').html() ); | |
| $('#product-size').val( $('#size #value').html() ); | |
| }); |
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 | |
| while (have_posts()) : | |
| the_post(); | |
| the_content(); | |
| endwhile; // End of the loop. | |
| ?> |
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
| $name = get_the_title(); | |
| if ($name == "Flow iron and hose") { ?> | |
| } ?> |
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 | |
| //page id | |
| $page_id = "5"; //example | |
| if (has_post_thumbnail($page_id) ): | |
| $image = wp_get_attachment_image_src( get_post_thumbnail_id($page_id), 'single-post-thumbnail' ); | |
| endif; | |
| $image_URI = $image[0]; | |
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
| OR | |
| <?php | |
| $args = array( | |
| 'post_type'= 'project' | |
| //multiple category needed | |
| 'category_name' => 'upcoming,residential' | |
| 'post_per_page' => 10 | |
| ); | |
| AND |
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
| …or create a new repository on the command line | |
| echo "# golf" >> README.md | |
| git init | |
| git add README.md | |
| git commit -m "first commit" | |
| git remote add origin git@github.com:eyecandy91/golf.git | |
| git push -u origin master | |
| …or push an existing repository from the command line | |
| git remote add origin git@github.com:eyecandy91/golf.git |
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
| node_modules | |
| .github/* | |
| bulma | |
| js-dev | |
| .vscode/* |