Home Forums Plugin Support WP Project Manager Pro Project list in alphabetical order

This topic is: not resolved

This topic contains 10 replies, has 2 voices, and was last updated by  Marvin 3 years, 8 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #73111

    Marvin
    Member
    Post count: 7

    Hi There,

    I've been struggling with an issue the past few days. I want to be able to show the projects in alphabetical order on the admin side. I've looked through the forum and found this thread to be similar to my question: https://wedevs.com/support/topic/project-order/

    However, when I tried to duplicate what you had suggested to the OP, it caused the plugin to deactivate and I had to reupload the project.php file to restore our site.

    Is there a piece I'm missing or I don't understand? It would be very helpful to have this feature on our end

    #73277

    Nayem
    Moderator
    Post count: 6480

    Hello Marvin,

    We have changed the file structure in our latest version of Project manager and for this reason, those codes were not working. I need to check again.

    We are now in vacation and we will start our office from tomorrow. I will request you to knock me when we will start our office tomorrow. I will provide you the solution.

    Thanks.

    #73629

    Marvin
    Member
    Post count: 7

    Hi Nayem,

    Has there been any movement on this?

    Thank you!

    #73642

    Nayem
    Moderator
    Post count: 6480

    Hello,

    If you are using the latest version of Project manager which is v1.3.5 then open project manager/class/task.php file. In this file you will get those code-

    $args = array(
                'post_type'   => 'task_list',
                'numberposts' => -1,
                'order'       => 'ASC',
                'orderby'     => 'menu_order',
                'post_parent' => $project_id
                
    );

    Replace with-

    $args = array(
                'post_type'   => 'task_list',
                'numberposts' => -1,
                'order'       => 'ASC',
                'orderby'     => 'menu_order',
                'post_parent' => $project_id,
                'orderby'        => 'post_title',
                'order'          => 'ASC'
    );

    Thanks.

    #74288

    Marvin
    Member
    Post count: 7

    I finally had a chance to try this out – and it didn't seem to do quite what I was expecting. It seems to have alphabetized the To-Do Lists within projects.

    I'm happy to see this as well, however I am looking for the projects home page, where they are rectangular tiles, to be alphabetized.

    Is there an option for this?

    Thank you for all your help!

    #74297

    Nayem
    Moderator
    Post count: 6480

    Hello Marvin,

    By-default there is no option to do that. You have to customize the plugin code to get this personalized feature.

    Thanks.

    #74360

    Marvin
    Member
    Post count: 7

    Is the custom code something you can provide for me?

    #74429

    Nayem
    Moderator
    Post count: 6480

    Hello Marvin,

    I have already provided few codes to serialize your project alphabetically. Now, I am not much clear about your last query. Can you please describe me in more details? I hope I can provide something for you.

    #74530

    Marvin
    Member
    Post count: 7

    The code you first gave me that you said to replace in file project manager/class/task.php file above:

    $args = array(
                'post_type'   => 'task_list',
                'numberposts' => -1,
                'order'       => 'ASC',
                'orderby'     => 'menu_order',
                'post_parent' => $project_id,
                'orderby'        => 'post_title',
                'order'          => 'ASC'
    );

    This alphabetized my ‘To-Do Lists' within a single project. I would like all the ‘Projects' alphabetized. I'm speaking about the tiles that are generated when you click the ‘Projects' under the ‘Project Manager' toolbar.

    #74554

    Nayem
    Moderator
    Post count: 6480

    Hello,

    Right now we do not have this feature. If you want then you have to customize the plugin code. To rearrange the project thumbnail you have add few custom code.

    Thanks.

    #74600

    Marvin
    Member
    Post count: 7

    I understand that. Is that custom code you can provide to me or not?

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Project list in alphabetical order’ is closed to new replies.