Support » Plugins » [Plugin: Job Manager] Widget – latest jobs

  • Is there anyway to create a lastest jobs widget?

    In the site I am working on I was using posts as jobs until I found your wonderfull plugin.
    Using the php-code-widget I could list the latest jobs from a category by using this php:

    if (have_posts())
       while (have_posts())
            <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
            echo '<li>No jobs at the moment</li>';

    I am sorry that I do not understand php enough to work out a way to adapt the code in such a way that I could use it with job manager jobs. I suppose there must be more users who would appreciate a way to do this.. Could someone with more php skills give me some clue’s ??

    ps. pento I sent you an e-mail about translating to dutch, did you receive it ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • A job widget is already planned for version 0.6:

    It seems your email landed in my Spam folder, I’ll set you up a translator account there.

    Maybe someone else can help me out? Lets leave pento to focus on the next versions… But at least it makes me think that its not as simple as it is with normal posts.

    Ah, I see. Sorry, I missed that you were after help in getting your code working, too.

    Try changing your query_posts line to:


    Let me know how this goes.

    Mmm. that works only partly. It displays only 1 job, the one that was added the latest.

    And as to be expected… it also displays the job despite the fact that it has been configured to not show until a future date.
    (you can see it on the url I mailed you, bottom left in sidebar)

    Anymore ideas?

    Hrrm. This is a bit difficult. The problem is that query_posts() doesn’t support a post expiration, so I’ve had to write one that does it manually.

    For a comparison, look at jobman-display.php line 299, where I use get_posts(), then the loop on line 310 which removes expired jobs. You could use this method, but it is inefficient if you just want to get 5 jobs.

    Sorry I can’t be more help than this – query_posts is a bit limiting under some circumstances, this being one of them.

    Ah well, my knowledge of php is just too rudimentary. Whatever I try, I just get one job listed. I suppose I will just have to wait for version 0.6…

    Or hope that someone comes with an easy solution.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Job Manager] Widget – latest jobs’ is closed to new replies.