Forums

[Plugin: Job Manager] Job listing 'table' w/ exerpts (12 posts)

  1. sunstardave
    Member
    Posted 2 years ago #

    Hi. Great Plugin. Really great.

    I was wondering if it is possible or if it is, how can I display a listings page that looks something like this:

    http://www.businessvictoria.net/sp/worksource/employerslist.asp

    I'm not plugin code savvy (html/css is more my thing), so a layperson friendly solution would be hugely appreciated.

    Thanks in advance.

    David

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

  2. Gary
    Member
    Posted 2 years ago #

    You absolutely can. As HTML/CSS is more your thing, have a look in Job Manager Display Settings, at the Job Templates box. That explains all of the shortcodes you can use to insert data in to the job lists and individual job pages.

    For the Job List Template, you should think of the HTML in 3 parts:
    - The header part, appearing before the list of jobs
    - The HTML for a single job in the list, that can be repeated for each job being shown
    - The footer part, appearing after the list of jobs

    Here's a basic template that isn't exactly what you want, but should get you started:

    <table class="jobs-table">
      <tr class="heading">
        <th>Title</th>
        <th>[job_field1_label]</th>
        <th>[job_field2_label]</th>
        <th>[job_field4_label]</th>
      </tr>
    
    [job_loop]
      <tr class="job[job_row_number] job[job_id] [if_job_highlighted]highlighted [/if_job_highlighted][job_odd_even]">
        <td>[if_job_icon][job_icon]<br />[/if_job_icon] [job_link] [job_title] [/job_link]</td>
        <td>[job_field1]</td>
        <td>[job_field2]</td>
        <td>[job_field4]</td>
        <td>[job_link]More Info[/job_link]</td>
      </tr>
    [/job_loop]
    
    </table>
  3. sunstardave
    Member
    Posted 2 years ago #

    That's great! Works like a charm.

    Thank you very much. If I can get PayPal to play nice, a donation is enroute.

    Thanks again for your help.

  4. Gary
    Member
    Posted 2 years ago #

    Glad I could help. :)

    Let me know what you come up with - I like to see how people are customizing the look and feel of Job Manager!

  5. Gary
    Member
    Posted 2 years ago #


  6. Raleigh_Fingers
    Member
    Posted 2 years ago #

    This has worked great for me, but when I click on a category link, the result page is completely unformatted. Kind of looks like it wanted to create a table, but forgot to insert the HTML.

    Here is my template:

    <table class="jobs-table">
    <tr class="heading">
    <th>Title</th>
    <th>[job_field1_label]</th>
    <th>[job_field2_label]</th>
    <th>[job_field4_label]</th>
    <th>[job_field6_label]</th>
    <th>Action</th>
    </tr>

    [job_loop]
    <tr class="job[job_row_number] job[job_id] [if_job_highlighted]highlighted [/if_job_highlighted][job_odd_even]">
    <td>[if_job_icon][job_icon]
    [/if_job_icon] [job_link] [job_title] [/job_link]</td>
    <td>[job_field1]</td>
    <td>[job_field2]</td>
    <td>[job_field4]</td>
    <td>[job_field6]</td>
    <td>[job_apply_link]Apply Now[/job_apply_link]</TD>
    </tr>
    [/job_loop]

    </table>

    ... and here is what I get when I click on the category link:

    Title
    Salary
    Start Date
    Location
    Type
    Action

    Project Manager
    Negotiable
    ASAP
    Raleigh, NC
    Contract, Temp-to-Hire
    Apply Now

    Not sure if it's a coincidence, but the "Jobs Listing" link at the top goes nowhere and I get a "Not Found Sorry, but you are looking for something that isn't here."

    Thoughts?

    Thanks!

  7. Gary
    Member
    Posted 2 years ago #

    Do you have a link where I could see this happening?

  8. Raleigh_Fingers
    Member
    Posted 2 years ago #

    email with a link sent seperately. Thanks!

  9. dkatzman
    Member
    Posted 1 year ago #

    Hi Pento

    I have tried everything but I cannot figure out how to make this work... It's probably a simple thing, but it's driving me nuts!!! I really need your input :) I want a "commtechservices.com" type of list

    I took the "page.php" from my theme, and renamed it to generate another template. Then I tried to insert the code you gave up here in this post. I just get the table structure, and that's it... It seems that the code between [] is not getting read as code. I moved it around, tried replacing the characters (sometimes it can be the char set), put it on and off a php identifier, changed the labels, etc... NOTHING.

    My blog is in Spanish language, so that might be what's causing the problem... I just don't get it :(

    This is the code for my template:

    <?php /* Mystique/digitalnature
    
     Template Name: Job List
     */
    
     /* Mystique/digitalnature */
     get_header();
    ?>
    
      <!-- main content: primary + sidebar(s) -->
      <div id="main">
       <div id="main-inside" class="clear-block">
        <!-- primary content -->
        <div id="primary-content">
         <div class="blocks">
           <?php do_action('mystique_before_primary'); ?>
    
    <table class="jobs-table">
      <tr class="heading">
        <th>Puesto</th>
        <th>Remuneraci&oacute;n</th>
        <th>Ubicaci&oacute;n</th>
      </tr>
    
    [job_loop]
      <tr class="job[job_row_number] job[job_id] [if_job_highlighted]highlighted [/if_job_highlighted][job_odd_even]">
        <td>[if_job_icon][job_icon]<br />[/if_job_icon] [job_link] [job_title] [/job_link]</td>
        <td>[job_field1]</td>
        <td>[job_field4]</td>
      </tr>
    [/job_loop]
    
    </table>
    	   <?php
    
            if (have_posts()):
             while (have_posts()):
              the_post();
    
              mystique_page();
             endwhile;
            endif;
    
            comments_template();
           ?>
           <?php do_action('mystique_after_primary'); ?>
         </div>
        </div>
        <!-- /primary content -->
    
        <?php get_sidebar(); ?>
    
       </div>
      </div>
      <!-- /main content -->
    
    <?php get_footer(); ?>

    I left the original part of the page (post) to get all the jobs fully deployed, but it will be removed when I get the list working. The page can be viewed in:

    http://www.mythosom.com/jobs/

    Thanks for your great plugin, and for your help. Cheers!!

    Diego

  10. Gary
    Member
    Posted 1 year ago #

    No need to touch page.php. Instead, go to Job Manager->Settings->Display Settings. Scroll down to the Job Templates box, and paste the template code from my first comment into the Job List Template box.

  11. dkatzman
    Member
    Posted 1 year ago #

    Dude, it worked like a charm!

    You are the best, mate. Thanks a lot. Cheers!

    PS: Do you know any way I could set WP to show numbers in a thousands format in the list I generated?

  12. Gary
    Member
    Posted 1 year ago #

    In Job Manager? Not possible at the moment. Version 1.0 (due out late this year, hopefully) will have a plugin interface, at which point it will be easier to add new field formats - such as one that automatically formats numbers in the same way.

Topic Closed

This topic has been closed to new replies.

About this Topic