Changeset 3353225
- Timestamp:
- 08/31/2025 05:10:32 AM (7 months ago)
- Location:
- wp-postviews/trunk
- Files:
-
- 3 edited
-
postviews-options.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-postviews.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-postviews/trunk/postviews-options.php
r2177976 r3353225 129 129 - %POST_URL%<br /> 130 130 - %POST_THUMBNAIL%<br /> 131 - %POST_THUMBNAIL_URL%<br /> 131 132 - %POST_CATEGORY_ID%<br /> 132 133 - %POST_AUTHOR%<br /><br /> -
wp-postviews/trunk/readme.txt
r2949760 r3353225 4 4 Tags: views, hits, counter, postviews 5 5 Requires at least: 4.0 6 Tested up to: 6. 37 Stable tag: 1.7 76 Tested up to: 6.6 7 Stable tag: 1.78 8 8 9 9 Enables you to display how many times a post/page had been viewed. … … 32 32 33 33 ## Changelog 34 ### Version 1.78 35 * NEW: Add %POST_THUMBNAIL_URL% to template variables 36 34 37 ### Version 1.77 35 38 * NEW: Use Vanilla JS. Props @JiveDig -
wp-postviews/trunk/wp-postviews.php
r2949760 r3353225 285 285 $temp = str_replace( '%POST_TIME%', get_the_time( get_option( 'time_format' ) ), $temp ); 286 286 $temp = str_replace( '%POST_THUMBNAIL%', get_the_post_thumbnail( null,'thumbnail',true ), $temp); 287 $temp = str_replace( '%POST_THUMBNAIL_URL%', get_the_post_thumbnail_url( null,'thumbnail',true ), $temp); 287 288 $temp = str_replace( '%POST_CATEGORY_ID%', $post_category_id, $temp ); 288 289 $temp = str_replace( '%POST_AUTHOR%', get_the_author(), $temp ); … … 347 348 $temp = str_replace( '%POST_TIME%', get_the_time( get_option( 'time_format' ) ), $temp ); 348 349 $temp = str_replace( '%POST_THUMBNAIL%', get_the_post_thumbnail( null,'thumbnail',true ), $temp); 350 $temp = str_replace( '%POST_THUMBNAIL_URL%', get_the_post_thumbnail_url( null,'thumbnail',true ), $temp); 349 351 $temp = str_replace( '%POST_CATEGORY_ID%', $post_category_id, $temp ); 350 352 $temp = str_replace( '%POST_AUTHOR%', get_the_author(), $temp ); … … 410 412 $temp = str_replace( '%POST_TIME%', get_the_time( get_option( 'time_format' ) ), $temp ); 411 413 $temp = str_replace( '%POST_THUMBNAIL%', get_the_post_thumbnail( null,'thumbnail',true ), $temp); 414 $temp = str_replace( '%POST_THUMBNAIL_URL%', get_the_post_thumbnail_url( null,'thumbnail',true ), $temp); 412 415 $temp = str_replace( '%POST_CATEGORY_ID%', $post_category_id, $temp ); 413 416 $temp = str_replace( '%POST_AUTHOR%', get_the_author(), $temp ); … … 473 476 $temp = str_replace( '%POST_TIME%', get_the_time( get_option( 'time_format' ) ), $temp ); 474 477 $temp = str_replace( '%POST_THUMBNAIL%', get_the_post_thumbnail( null,'thumbnail',true ), $temp); 478 $temp = str_replace( '%POST_THUMBNAIL_URL%', get_the_post_thumbnail_url( null,'thumbnail',true ), $temp); 475 479 $temp = str_replace( '%POST_CATEGORY_ID%', $post_category_id, $temp ); 476 480 $temp = str_replace( '%POST_AUTHOR%', get_the_author(), $temp ); … … 535 539 $temp = str_replace( '%POST_TIME%', get_the_time( get_option( 'time_format' ) ), $temp ); 536 540 $temp = str_replace( '%POST_THUMBNAIL%', get_the_post_thumbnail( null,'thumbnail',true ), $temp); 541 $temp = str_replace( '%POST_THUMBNAIL_URL%', get_the_post_thumbnail_url( null,'thumbnail',true ), $temp); 537 542 $temp = str_replace( '%POST_CATEGORY_ID%', $post_category_id, $temp ); 538 543 $temp = str_replace( '%POST_AUTHOR%', get_the_author(), $temp ); … … 598 603 $temp = str_replace( '%POST_TIME%', get_the_time( get_option( 'time_format' ) ), $temp ); 599 604 $temp = str_replace( '%POST_THUMBNAIL%', get_the_post_thumbnail( null,'thumbnail',true ), $temp); 605 $temp = str_replace( '%POST_THUMBNAIL_URL%', get_the_post_thumbnail_url( null,'thumbnail',true ), $temp); 600 606 $temp = str_replace( '%POST_CATEGORY_ID%', $post_category_id, $temp ); 601 607 $temp = str_replace( '%POST_AUTHOR%', get_the_author(), $temp );
Note: See TracChangeset
for help on using the changeset viewer.