WordPress.org

Ready to get started?Download WordPress

Forums

Job Manager
Job list category in homepage/page (7 posts)

  1. icarusro
    Member
    Posted 3 years ago #

    Hi,

    Very nice job you did with the plugin. I have just a little question. I need to display the job list for a certain category to the homepage or other pages. I have read the other threads and find an article how to display the whole job list:

    $posts = jobman_display_jobs_list( 'all' );
    echo $posts[0]->post_content;

    Now all I need is to filter it to show only the jobs for a certain category... here I'm stuck. I tried to put instead of "all" parameter the id of my category or the slug but no luck.

    Any ideas ?

    Thank you for your time.

  2. farshidk
    Member
    Posted 3 years ago #

    i want to show a summary list of jobs as opposed to all the details of all the jobs in the main page which is what i get as default. is this the same problem? where exactly do you plug this 2-line code? thanks.

    i wish we'd get more help on this forum. frustrating.

  3. luminancedesign
    Member
    Posted 3 years ago #

    I'm also looking for a way to display a hierarchical unordered list of categories and posts within each. So far, no joy.

    As the categories created in Job Manager seem to be internal to job manager and not WP post categories, there is very little manipulation possible from what I can tell. It would be nice if it created an actual 'post' for a 'category' in the WP structure rather than the way it does - we shall see what changes when / if an update comes...

  4. petebocken
    Member
    Posted 3 years ago #

    I'd like to know how to filter certain categories as well with the php code icarusro mentions above.

  5. petebocken
    Member
    Posted 3 years ago #

    I got this working for me. I created my own template files called "category-categoryname.php" then just customized the template. Then when you go to domain.com/jobs/categoryname, that template will load.

  6. luminancedesign
    Member
    Posted 3 years ago #

    I guess if you want to display a list of links for all categories on one page you could pull the respective content from the category pages using PHP or jQuery etc, onto a 'combined' template page.

    Still wish there was an easier way to do this - I ended up assigning classes in the display code, pulling matching category names from the full list table, then using jQuery to clone the matching content to the visible part of the page, before removing the full list table to leave just the filtered jobs.

    Crude and not the ideal approach I know, but was the first method that I came up with that worked in the time I had - I do plan to streamline it sometime! See:

    http://www.bberecruitment.co.uk/vacancies/

    Colour coding the jobs by matching categories can be seen here:

    http://www.bberecruitment.co.uk/vacancies/all/

    Hoping there will be an update soon!

  7. 3ring
    Member
    Posted 2 years ago #

    @petebocken can you please describe in a little more detail how you got your template to only display jobs in a specific category? Where did you put the php file you mentioned?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic