Bug – alphanumerical menu permalinks in grid
-
Hi. When alphanumerical menu is enabled in the page that movie grid is shown, the permalinks in the menu take the translation name, instead of page’s permalink.
For instance:
* The page URL for grid is ../filmler
* The translation for ‘movies’ is changed as ‘film’
* The URL in the grid menu becomes ../film/grid/K/4:6/ASC
* The URL should be ../filmler/grid/K/4:6/ASCI have changed one line in /public/class-wpmoly-grid.php and it has been fixed and working now.
Original code:
// Allow URL params to override settings $_args = WPMOLY_Archives::parse_query_vars( $wp_query->query ); $args = wp_parse_args( $_args, $args ); extract( $args ); if ( true === $shortcode ) { $baseurl = get_permalink(); } else { $baseurl = get_post_type_archive_link( 'movie' ); }
The changed one:
// Allow URL params to override settings $_args = WPMOLY_Archives::parse_query_vars( $wp_query->query ); $args = wp_parse_args( $_args, $args ); extract( $args ); if ( true === $shortcode ) { $baseurl = get_permalink(); } else { $baseurl = get_permalink(); }
If it is a bug, I just wanted to report it. Thank you for this awesome plugin again.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Bug – alphanumerical menu permalinks in grid’ is closed to new replies.