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 $my_query = new WP_Query('page_id=13'); | |
while ($my_query->have_posts()) : $my_query->the_post(); ?> | |
<h2><?php the_title(); ?></h2> | |
<?php the_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
<?php echo get_option('home'); ?> <!-- get the home URL --> | |
<?php bloginfo('description'); ?> <!-- display the blog description --> | |
<?php bloginfo('name'); ?> <!-- display the blog name --> | |
<?php bloginfo('template_directory') ?> <!-- get the home URL for template's directory --> | |
<?php echo get_template_directory_uri(); ?> | |
<?php wp_list_pages('sort_order=desc&title_li='); ?> <!-- display the page list in descending order withour title --> | |
<?php wp_list_pages('sort_order=desc&depth=1&title_li='); ?> <!-- display the page list in descending order with "current_page_item" class | |
<?php wp_list_bookmarks(); ?> <!-- display the list of blogrolls --> | |
<?php echo date('Y'); ?> |
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 | |
/** | |
* WooCommerce Extra Feature | |
* -------------------------- | |
* | |
* Add custom fee to cart automatically | |
* | |
*/ | |
function woo_add_cart_fee() { | |
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
<span> | |
<select name="day"> | |
<option value="monday">Monday</option> | |
<option value="tuesday">Tuesday</option> | |
<option value="wednesday">Wednesday</option> | |
<option value="thursday">Thursday</option> | |
<option value="friday">Friday</option> | |
<option value="saturday">Saturday</option> | |
<option value="sunday">Sunday</option> | |
</select> |
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 goToByScroll(id){ | |
$('html,body').animate({scrollTop: $("#"+id).offset().top},'slow'); | |
} | |
<a href="#linkID" onclick="goToByScroll('linkID')">Link</a> |
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: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |
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
<!DOCTYPE html> | |
<html lang=""> | |
<head> | |
<meta charset="utf-8"> | |
<title>window.history.pushState Example</title> | |
</head> | |
<body> | |
<h1>window.history.pushState Example</h1> | |