Plugin Directory

Changeset 726921

Timestamp:
06/15/2013 01:43:23 PM (11 years ago)
Author:
nvwd
Message:

Changed widget option for post type to include only publically queriable post types ( Pages not an option anymore ). Fixed links generated when using the post type of Post.

Location:
a2z-alphabetical-archive-links
Files:
4 added
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • a2z-alphabetical-archive-links/tags/1.0/css

    • Property svn:ignore set to
      _notes
  • a2z-alphabetical-archive-links/trunk/a2z-alphabetical-archive-links.php

    r720131 r726921  
    7979       
    8080        function form( $instance ) {
    81             $available_posts_types = get_post_types( array( 'public' => true ) );
     81            $available_posts_types = get_post_types( array( 'public' => true ) );
    8282            $exclude_pts = array( 'attachment' );
    8383            $defaults = array(
     
    127127            $pt_initials = $wpdb->get_results( $querystr, ARRAY_A );
    128128            $initial_arr = array();
     129
     130
     131
     132
    129133            foreach( $pt_initials AS $pt_rec ) {
    130                 $link = add_query_arg( 'a2zaal', $pt_rec['initial'], get_post_type_archive_link( $instance['post_type'] ) );
     134                $link = add_query_arg( 'a2zaal', $pt_rec['initial'], );
    131135                if ( (bool) $instance['show_counts'] ) {
    132136                    $item = '<li class="count"><a href="' . $link . '">' . $pt_rec['initial'] . '<span>' . $pt_rec['counts'] . '</span>' . '</a></li>';
  • a2z-alphabetical-archive-links/trunk/readme.txt

    r721698 r726921  
    55Requires at least: 3.3
    66Tested up to: 3.5.1
    7 Stable tag: 1.0
     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
     51
    4752= 1.0 =
    4853Initial release
     
    5055== Upgrade Notice ==
    5156
     57
     58
     59
     60
    5261= 1.0 =
    5362Released
Note: See TracChangeset for help on using the changeset viewer.