• Resolved carnets2routards

    (@carnets2routards)


    Hi,

    First thank you for your work, I’m just starting to try out your plugin but it already looks great and easy to use.

    I would like to know if there’s a way (direct or by tweaking the code maybe) to display only the latest job openings in a page (like the latest post blog)? And setting how many (e.g. last 4 listings, last 6, etc.)

    Thanks in advance for your help and advice.
    Best regards

    PS. : I just found out you have this option in a widget. So hoping there’s an easy way to add this in a page (like a WP block)?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter carnets2routards

    (@carnets2routards)

    Update: for now I managed to display the WP Job Openings widget in a page by using another plugin: amr shortcode any widget ??

    I still need to find a way to display it as a grid (it’s currently displayed as a list even if settings for listing page is on grid and 2 columns) and I would love to be able to make the title dynamic like “Our latest opening: RANDOM TITLE”, random title being randomly a title from the list of job openings.

    Plugin Support vidyakv

    (@vidyakv)

    Hi @carnets2routards,

    Thanks for reaching out to us.

    You can use this shortcode in your page:
    [awsmjobs listings="4" filters="no" loadmore="no"]

    Currently, the Gutenberg block is not supported. But, you can use the above-mentioned shortcode.

    Regards,
    Vidya K V

    Thread Starter carnets2routards

    (@carnets2routards)

    Hi @vidyakv and thanks a lot for your quick answer! Your shortcode is exactly what I needed, it’s better than the first solution I found (using another plugin). Cleaner and it uses the chosen template (grid).

    If I may, I would like to be able to display randomly and dynamically one title from the one of the complete job openings list (it will change regularly). Could you advise me on the best/quickest way to do it? Of course I’m gonna look on my side ??

    Thread Starter carnets2routards

    (@carnets2routards)

    Update: just to share what I did to display randomly on of the jobs title.

    In child theme > wp-job-openings > job-openings > main.php, I added a piece of code before the loop which query the jobs to create an array with only the titles of all jobs.

    while($query->have_posts()) {
      $query->the_post();
      $job_titles[] = get_the_title();
      $randomIndex = array_rand($job_titles);
    }

    And I display randomly an item from the array <?php echo $job_titles[$randomIndex]; ?>

    So it’s only dynamic on page refresh, I would like to find a way to change the echo every X seconds. If anyone got an idea or advice about this code (might be optimizable).

    Thanks!

    Thread Starter carnets2routards

    (@carnets2routards)

    I marked this one as solved because my first question was answered, thanks again!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Insert and limit job listing’ is closed to new replies.