Plugin Directory

Changeset 727659

Timestamp:
06/17/2013 09:52:17 PM (11 years ago)
Author:
nvwd
Message:

Changed link builder again to account for modified front page settings

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  
    44        Plugin URI: https://github.com/NowellVanHoesen/a2z-alphabetical-archive-links/wiki
    55        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.1
     6        Version: 1.0.
    77        Author: Nowell VanHoesen
    88        Author URI: http://nvwebdev.com/
     
    129129            $base_url = get_post_type_archive_link( $instance['post_type'] );
    130130            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               
    132137            }
    133138            foreach( $pt_initials AS $pt_rec ) {
  • a2z-alphabetical-archive-links/trunk/readme.txt

    r726921 r727659  
    55Requires at least: 3.3
    66Tested up to: 3.5.1
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545== Changelog ==
    4646
     47
     48
     49
     50
    4751= 1.0.1 =
    4852
     
    5559== Upgrade Notice ==
    5660
     61
     62
     63
     64
    5765= 1.0.1 =
    5866
Note: See TracChangeset for help on using the changeset viewer.