WordPress.org

Ready to get started?Download WordPress

Forums

Music Store
[resolved] Help needed changing the track list design setup. (3 posts)

  1. Eiqu
    Member
    Posted 1 year ago #

    Hello guys!
    I'm fairly new to the WordPress community so hi!
    My request is pretty simple (atleast I think so!)

    My problem is changing the plugin called "Music Store".
    Right now the music is just being posted from database to website in a long long list downwards, which gives a really bad overview and sorting.
    (You can see what I am talking about on my website here: http://eiqumusic.com/music-store/ )

    Instead of one long list, I would like to have 3 columns so the tracks fill the space to the right of the page where there's nothing.

    I am pretty sure I have found the place to edit my php, but I am not certain of what code to actually put in there to make this happen.

    The PHP looks like this now:

    * Extrat the songs data for song list
    */
    public static function columns_data($column){
    global $post;
    $obj = new MSSong($post->ID);

    switch ($column){
    case "artist":
    echo music_store_extract_attr_as_str($obj->artist, 'name', ', ');
    break;
    case "album":
    echo music_store_extract_attr_as_str($obj->album, 'name', ', ');
    break;
    case "genre":
    echo music_store_extract_attr_as_str($obj->genre, 'name', ', ');
    break;
    case "plays":
    echo $obj->plays;
    break;
    case "purchases":
    echo $obj->purchases;
    break;

    } // End switch
    } // End columns_data

    --------------

    I hope someone can help me make this music store look pretty so I can start selling my music! The request might be very noobish, but I am not really a PHP shark like most of you guys!! :D

    Have a great evening yall!

    -Eiqu Miller

    http://wordpress.org/extend/plugins/music-store/

  2. Eiqu
    Member
    Posted 1 year ago #

    I found the solution, nevermind!

  3. codepeople
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    In the insertion process of music store in your page or post it is possible entering the number of columns, the sortcode will be similar to:

    [music_store columns="3"]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.