• Resolved thetoolman123

    (@thetoolman123)


    Hi there,

    I am trying to create a page that lists all the jobs that were added on a single day.

    At the moment I am having to create this page manually by creating a page each day, adding the titles and links etc which is a lengthy process.

    Is there a shortcode that I can add to a page that will display jobs added on a specific date?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Cena (a11n)

    (@cena)

    Hi @thetoolman123 ,

    The [jobs] shortcode does have the orderby method, so something like [jobs orderby=date] is possible.

    See: https://wpjobmanager.com/document/shortcode-reference/

    However, that shortcode would just order the jobs by date, rather than only displaying jobs listed on a specific date, which is what it sounds like you want to do.

    Possibly another forum user might know a way to do this, so I’ll leave this thread open for a bit, but I think this would require custom code.

    Best,
    Cena

    @thetoolman123 — I think there are a couple ways you could do this with the RSS feature of WP Job Manager (WPJM).

    If you add the date to the contents of each job post, you could then pull and display just those job posts via a WPJM RSS feed with that search result (e.g. “2020-06-27”) using the RSS block built-in to WordPress (or a third-party plugin or script).

    You could also use a third-party RSS plugin or script to just display jobs posted in the past 24 hours (or another time period), I believe.

    If this is something you pursue, feel free to post back and I can provide more details about using RSS feeds with WPJM.

    Thread Starter thetoolman123

    (@thetoolman123)

    Hi there,
    Thanks for the reply.

    That makes sense. So would I have to add the date to each post in the body? At the moment I have the publish date set:

    https://ibb.co/pynW1r0

    I also have the listed date on the page, but it isn’t part of the post’s body:
    https://ibb.co/1LtcJTR

    Would either of these dates work?

    Thanks again!

    @thetoolman123 — yes, I think you would have to add the date to each post (you might be able to use CSS or the TinyMCE Advanced plugin to make the date text the same color as the post’s background color, so it’s invisible).

    You can use the WP Job Manager demo site to experiment with how the RSS function works. Right now, I just added two job posts, one with the date (2020-06-28) in the body of the job post, and one without it. To get the RSS feed for the job posts, just do a keyword or location search, and then click on the “RSS” link that appears on the right-hand side, above the search results.

    Doing a keyword search for “2020-06-28” just pulls up the job post with the date in the body of the job post (and here’s the RSS feed for it).

    Beyond the WordPress RSS block, check out the functionality that the WP RSS Aggregator plugin has, as well as the third-party RSS scripts by FeedWind and FeedGrabbr, which may provide more functionality or options for filtering your whole job RSS feed (which is at yourwebsite.com/?feed=job_feed).

    Thread Starter thetoolman123

    (@thetoolman123)

    Hi,

    Thanks for the reply.

    I see what you mean. I will have a play around with it and let you know how I get on ??

    Thanks again!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shortcode (or code) to display job listings added on a specific day?’ is closed to new replies.