Changeset 727659
- Timestamp:
- 06/17/2013 09:52:17 PM (11 years ago)
- Location:
- a2z-alphabetical-archive-links/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
a2z-alphabetical-archive-links/trunk/a2z-alphabetical-archive-links.php
r726924 r727659 4 4 Plugin URI: https://github.com/NowellVanHoesen/a2z-alphabetical-archive-links/wiki 5 5 Description: This WordPress plugin will get a list of characters, A to Z, from the initial character of a post or CPT title. The Initials will link to an archive page of posts/CPTs that begin with that character. 6 Version: 1.0. 16 Version: 1.0. 7 7 Author: Nowell VanHoesen 8 8 Author URI: http://nvwebdev.com/ … … 129 129 $base_url = get_post_type_archive_link( $instance['post_type'] ); 130 130 if ( ! $base_url ) { 131 $base_url = esc_url( home_url( '/' ) ); 131 if (get_option('show_on_front')=='page') { 132 $base_url = esc_url( get_permalink( get_option('page_for_posts') ) ); 133 } else { 134 $base_url = esc_url( home_url( '/' ) ); 135 } 136 132 137 } 133 138 foreach( $pt_initials AS $pt_rec ) { -
a2z-alphabetical-archive-links/trunk/readme.txt
r726921 r727659 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5.1 7 Stable tag: 1.0. 17 Stable tag: 1.0. 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 == Changelog == 46 46 47 48 49 50 47 51 = 1.0.1 = 48 52 … … 55 59 == Upgrade Notice == 56 60 61 62 63 64 57 65 = 1.0.1 = 58 66
Note: See TracChangeset
for help on using the changeset viewer.