WordPress.org

Forums

WP Job Manager
[resolved] Displaying Job Category in Job Listing (8 posts)

  1. fsl123
    Member
    Posted 2 years ago #

    I wanted to add Job Category as well in the job listings, but couldn't find a tag/function for it.

    Can you help :( It's really important for me...
    Thanks

    http://wordpress.org/plugins/wp-job-manager/

  2. Mike Jolley
    Member
    Plugin Author

    Posted 2 years ago #

    Categories are visible on the single job view, but not the list view. A developer would be able to customise the template files to your needs.

    https://github.com/mikejolley/WP-Job-Manager/wiki/Template-Overrides
    https://github.com/mikejolley/WP-Job-Manager/wiki/Template-Tags

  3. fsl123
    Member
    Posted 2 years ago #

    Thanks for your response.
    It might sound stupid, but I can't see the category on the single job view page. There aren't any template tags for it as well.

    It would be great if you can point me to the right direction and I'll customise the template myself (but i just can't find the function anywhere in the plugin)

    It's not even mentioned here; https://github.com/mikejolley/WP-Job-Manager/wiki/Single-Job-Listings

  4. Mike Jolley
    Member
    Plugin Author

    Posted 2 years ago #

    You can use something like http://codex.wordpress.org/Function_Reference/wp_get_post_terms to get the terms/categories. Standard WP functions will do fine :)

  5. fsl123
    Member
    Posted 2 years ago #

    perfect...
    you're a rockstar :P

  6. bffnb
    Member
    Posted 1 year ago #

    Hi!

    Cany anybody tell me the exact code to use? I need this function to...!!
    And where should i place it?

    Thank you so much and happy new year!

  7. gason
    Member
    Posted 1 year ago #

    This code worked for me

    <?php the_terms( $post->ID, 'job_listing_category', '', ' / ' ); ?>

    You should paste it in the templates where you want to show the categories.

  8. RavieSolanky
    Member
    Posted 1 year ago #

    Thank you Gason So much :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Job Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.