Full tutorial: https://github.com/JonMasterson/WordPress-Post-Like-System
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
// Add this to your theme's functions.php file, and replace wp_link_pages in the whole theme by it. | |
//Use | |
//post intro | |
//<!--nextpage--><!--pagetitle: Title one --> | |
//more post | |
//<!--nextpage--><!--pagetitle: Title two --> | |
//..... | |
//That way we get pagination links ... First Title one Title two | |
//http://wordpress.stackexchange.com/questions/11578/custom-page-links-for-paginated-posts-wp-link-pages-nextpage-quicktag |
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 | |
/** | |
* @link Escape post content in META Attributes, http://codex.wordpress.org/Data_Validation | |
* @link Complete List of HTML Meta Tags, https://gist.github.com/kevinSuttle/1997924 | |
* @example get_template_part('meta'); | |
*/ | |
?> | |
<meta name="twitter:card" content="summary"> | |
<!--<meta name="twitter:site" content="@YOUR_TWITTER_HANDLE">--> |
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 | |
//Create an ad unit | |
//Place this code in a file functions.php | |
function wptuts_simple_ads( $ad_type ) { | |
switch ( $ad_type ) { | |
case "468x60": | |
$ad_code = "<!-- Ad code for a 468x60 advertisement. -->"; |