Your Time:
Our Time:
← Back to discussions

✓ Multiple issues (browsing and page results)

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket
Resolved
Posted in: MusicPlay

This topic has 13 replies, 2 voices, and was last updated 10 years ago by Fem.

  • 2016-09-24 at 10:55 pm
    Support Expired
    #16683
    cameleweb
    Participant
    • Topics: 14
    • Replies: 59
    • Total posts: 73
    • Post count: 61

    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?

    2016-09-26 at 10:59 am
    #16690
    Fem
    Keymaster
    • Topics: 2
    • Replies: 8473
    • Total posts: 8475
    • Post count: 6003

    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.

    2016-10-04 at 11:33 pm
    Support Expired
    #16857
    cameleweb
    Participant
    • Topics: 14
    • Replies: 59
    • Total posts: 73
    • Post count: 61

    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/

    2016-10-05 at 11:00 am
    #16870
    Fem
    Keymaster
    • Topics: 2
    • Replies: 8473
    • Total posts: 8475
    • Post count: 6003

    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.

    2016-10-06 at 5:32 am
    Support Expired
    #16888
    cameleweb
    Participant
    • Topics: 14
    • Replies: 59
    • Total posts: 73
    • Post count: 61
    This reply has been marked as private.
    2016-10-06 at 11:55 am
    #16900
    Fem
    Keymaster
    • Topics: 2
    • Replies: 8473
    • Total posts: 8475
    • Post count: 6003

    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;  
    }
    2016-10-07 at 4:17 am
    Support Expired
    #16922
    cameleweb
    Participant
    • Topics: 14
    • Replies: 59
    • Total posts: 73
    • Post count: 61

    I need a 5 columns display everywhere… why are you asking me to choose Albums 4 Column template??

    Thanks for the pagination.

    2016-10-07 at 10:47 am
    #16924
    Fem
    Keymaster
    • Topics: 2
    • Replies: 8473
    • Total posts: 8475
    • Post count: 6003

    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' ; }
    2016-10-07 at 4:47 pm
    Support Expired
    #16933
    cameleweb
    Participant
    • Topics: 14
    • Replies: 59
    • Total posts: 73
    • Post count: 61
    2016-10-07 at 5:30 pm
    #16937
    Fem
    Keymaster
    • Topics: 2
    • Replies: 8473
    • Total posts: 8475
    • Post count: 6003

    Fixed. Edited File: taxonomy-genres.php, taxonomy-label.php

    2016-10-08 at 3:28 am
    Support Expired
    #16940
    cameleweb
    Participant
    • Topics: 14
    • Replies: 59
    • Total posts: 73
    • Post count: 61

    Thanks!!

    2016-10-13 at 10:49 am
    #17021
    Fem
    Keymaster
    • Topics: 2
    • Replies: 8473
    • Total posts: 8475
    • Post count: 6003

    Topic is set to be resolved. If you wish to update this topic please reply here instead of creating another topic.

    2016-10-15 at 4:54 pm
    Support Expired
    #17110
    cameleweb
    Participant
    • Topics: 14
    • Replies: 59
    • Total posts: 73
    • Post count: 61

    Will this fix part of the next release?

    2016-10-15 at 5:00 pm
    #17111
    Fem
    Keymaster
    • Topics: 2
    • Replies: 8473
    • Total posts: 8475
    • Post count: 6003

    No, this is the custom work which we have done only for you. You have to keep back up of the edited files whenever you update the theme to latest version.

You must be logged in to reply to this topic.