• Resolved rocknets

    (@rocknets)


    Hello, I’m trying to find the code where I can add a ‘location’ column to the Dashboard view. This would be really helpful as many jobs have the same title, and the best way to differentiate them is by their location.

    I also want to remove the ‘Filled’ column, but I think I’ll know how to do this once when I know the answer to the first question.

    Many Thanks in Advance.

    Stephen

    • This topic was modified 1 year, 8 months ago by rocknets.
Viewing 5 replies - 1 through 5 (of 5 total)
  • @rocknets

    you can remove the filled column via this snippet

    add_filter( 'job_manager_job_dashboard_columns', 'remove_filled_column' ); 
    function remove_filled_column( $columns ) {
        unset( $columns['filled'] );
        return $columns;
    }
    Thread Starter rocknets

    (@rocknets)

    Hey. Thank you so much for taking the time to respond. Do you also know how to add a column that displays the location field please?

    Many Thanks

    Stephen

    Plugin Contributor Cena (a11n)

    (@cena)

    Hi @rocknets ,

    Do you also know how to add a column that displays the location field please?

    While we can’t provide custom code (perhaps @braehler has another snippet up his sleeve! :)) hopefully I can get you pointed in the right direction.

    This is something you can do by overriding the default templates in WP Job Manager. You would need to modify the job-dashboard.php template. We have a guide on how to override the default templates here:

    https://wpjobmanager.com/document/template-overrides/

    Additionally, you will likely find the list of template tags helpful:

    https://wpjobmanager.com/document/template-tags/

    We aren’t able to provide assistance with customizing templates per our support policy. If you need assistance, we recommend hiring a developer. We recommend the following sources:

    Hope that helps!

    Best,

    Cena

    @rocknets

    maybe this one here points ypu into the right direction. Never realy touched this one, but I hope this helps.

    function custom_job_manager_job_dashboard_columns( $columns ) {
        
      
        // Add column
        
        $columns['job_location'] = 'Location';
        
    	
        // Return.
        return $columns;
    }
    
    add_action( 'job_manager_job_dashboard_column_job_location', function( $post ) {
        echo get_post_meta( $post->ID, '_job_location', true );
    } );
    • This reply was modified 1 year, 7 months ago by braehler.
    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Since information to add this functionality has been shared, I am going to mark this thread as resolved.

    If you have questions about WP Job Manager in the future, feel free to open a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add location column in Job Dasboard’ is closed to new replies.