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 | |
/** | |
* Use external display of counter. | |
* | |
* @since 2.3.0 | |
* | |
* @param string $home_url | |
* @return string | |
*/ |
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 | |
/* | |
* This example fetches the related posts for the current post ID and displays the output in a custom format restricted by the 'news' category | |
* | |
*/ | |
if ( function_exists( 'get_crp_posts_id' ) ) { | |
global $post; | |
$scores = get_crp_posts_id( array( | |
'postid' => $post->ID, |
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 | |
/** | |
* Filter function to resize post thumbnail. Filters: crp_thumb_url. | |
* | |
* @since 1.8.4 | |
* | |
* @param string $postimage | |
* @param string|int $thumb_width | |
* @param string|int $thumb_height |
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 | |
/** | |
* Display the formatted list count. | |
* | |
* Add this code to your theme's functions.php file. | |
* | |
* @param $string $tptn_list_count Formatted list count | |
*/ | |
function tptn_display_formatted_count( $tptn_list_count, $sum_count, $result ) { |
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
.tptn_title { | |
float: left; | |
clear: left!important; | |
} | |
.tptn_thumb { | |
align: center!important; | |
} | |
.tptn_posts, | |
.tptn_posts_daily { | |
margin-bottom: 20px; |
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 | |
/** | |
* Filter_tptn_viewed_count function. | |
* | |
* @param string $output Top 10 tracker script | |
* @return string Filtered tracker script | |
*/ | |
function filter_tptn_viewed_count( $output ) { | |
global $wp_query; |
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 | |
/* | |
* This example fetches the related posts and uses Ajax Load More to dynamically pull additional posts | |
* | |
*/ | |
global $post; | |
$features = get_crp_posts_id( array( | |
'postid' => $post->ID, |
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
Sub NumberFormat() | |
' Range should be formatted as "TEXT";"TEXT" | |
Range("B2:B19").NumberFormat = Range("C2:C19").Value | |
End Sub |
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
.crp_related ul { | |
display: grid; | |
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); | |
gap: 10px; | |
margin: 0; | |
justify-items: center; | |
list-style: none; | |
} | |
.crp_related ul li { | |
text-align:center; |
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 | |
/* | |
* This example fetches the popular posts tracked by Top 10. | |
* | |
*/ | |
if ( function_exists( 'get_tptn_posts' ) ) { | |
$settings = array( | |
'daily' => TRUE, |