This topic has 13 replies, 2 voices, and was last updated 9 years, 11 months ago by Anonymous.
Viewing 14 posts - 1 through 14 (of 14 total)
Hi!
I’ve selected the Albums 5 columns model for my home page. But the Next and previous page links don’t work. I see that I’m in page 2, and so on, but the albums displayed are the same each time.
Also, I’ve selected a limit of 50 albums to display, but only a maximum of 10 albums is displayed in the artist page (More albums from this artist), and in the page results.
How can I switch the 4 columns view for a 5 columns view in the labels, genres, etc. page results?
For albums to display more than 10, you can change the limit in Settings > Reading > Blog pages show at most.
To change from 5 columns to 4: Follow this path: musicplay > musicband > albums > audio-genres.php and audio-labels.php and find for this code $column_index = 0; $columns = 5; which is around line #21 in both audio-genres.php and audio-labels.php files and replace that line of code to $column_index = 0; $columns = 4; in both the files.
Thanks!
I changed the value in Reading, from 10 to 50, but still see only 10 albums : http://musiquechretiennefrancophone.com/artiste/jeunesse-en-mission/
It’s already “$column_index = 0; $columns = 5” in these 2 files, but I see 4 columns : http://musiquechretiennefrancophone.com/genres/chansonnier-folk/
And what about the Next and previous page links problem? See at the bottom : http://musiquechretiennefrancophone.com/
1. Sorry, I misunderstood your question before. Go to musicplay/musicband/artists/artists-albums file. Find for this line 'posts_per_page' => 10,, here you can change the limit.
2. Replace this line of code $column_index = 0; $columns = 5; to $column_index = 0; $columns = 4;.
3. I think you have similar album posts. So that is the reason the albums are repeating in the next previous pages. If you can provide us WP Logins to your website with URL then we can take a closer look at it. Make sure you set the post as private reply so that only admin can see your wp-logins.
2. By logging in to your website I have seen that you are using Albums 5 Column template which is displaying the albums in 5 columns. Kindly choose Albums 4 Column template by going to that specific page. Have a look at the screenshot for understanding.
3. Fixed the pagination issue.
Changed the below code
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
to
if ( get_query_var('paged') ) {
$paged = get_query_var('paged');
} elseif ( get_query_var('page') ) {
$paged = get_query_var('page');
} else {
$paged = 1;
}
Sorry for the misunderstand.
Fixed your issue. Edited File: taxonomy-artist_cat.php
Replaced the below code
//Columns for Album Thumbs
$column_index = 0; $columns = 5;
if( $columns == '4' ) { $class = 'col_fourth'; }
if( $columns == '3' ) { $class = 'col_third'; }
//Full Width Artist Image Sizes
if( $columns == '4' ) { $width='470'; $height = '470' ; }
if( $columns == '3' ) { $width='470'; $height = '470' ; }
with,
//Columns for Album Thumbs
$column_index = 0; $columns = 5;
if( $columns == '4' ) { $class = 'col_fourth'; }
if( $columns == '3' ) { $class = 'col_third'; }
if( $columns == '5' ) { $class = 'col_fifth'; }
//Full Width Artist Image Sizes
if( $columns == '4' ) { $width='470'; $height = '470' ; }
if( $columns == '3' ) { $width='470'; $height = '470' ; }
if( $columns == '5' ) { $width='470'; $height = '470' ; }
I still see 4 columns…
http://musiquechretiennefrancophone.com/genres/chansonnier-folk/
Fixed. Edited File: taxonomy-genres.php, taxonomy-label.php
Topic is set to be resolved. If you wish to update this topic please reply here instead of creating another topic.
Viewing 14 posts - 1 through 14 (of 14 total)
You must be logged in to reply to this topic.