Hey Steve,
Happy to help you with your question.
Unfortunately this functionality isn’t available out of the box but it wouldn’t be to difficult with some custom queries to pull these from the main site.
To see an example of how we query job listings in core take a look at:
https://github.com/mikejolley/WP-Job-Manager/blob/0ac586f801d7cc493a1fb3abaf9b8d188ca83247/includes/class-wp-job-manager-shortcodes.php#L349
I don’t recommend switch_to_blog() usually but you could try it, otherwise look into:
https://github.com/ericandrewlewis/WP_Query_Multisite
Kind Regards,
Scott
Thanks Scott. My coding skills are next to zero.
I did wonder about using RSS as the information is much the same as in your job widget isn’t it.
I know that users could use the RSS widget to do this, but my site users might not understand the procedure. I want to make it really simple for them to drag and drop a ready-made RSS widget into their sidebar that already has the feed setup – pointing to the wp Job Manger RSS data..
I know how to make a basic widget, but do you know of a simple way for me to make an RSS feed reader widget – where the feed url is already hard-coded into the widget?
This would be great if you could point me in the right direction.
Thanks for your help do far.
Steve
RSS Widget could definitely do the trick to show these on other sites 🙂
You’ll find it at:
http://yoursite.com/feed/job_feed or:
http://yoursite.com/feed/?post_type=job_listing
You could then utilize a widget like:
https://wordpress.org/plugins/rss-feed-widget/
or:
https://wordpress.org/plugins/better-rss-widget/
or the one bundled in core to display these items.
Hope this helps!
Cheers,
Scott