ouegy
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] Structured data errorsThanks Davor,
Looking in wp-job-manager-template.php it seems
addressRegion
is set by$mapping['addressRegion'] = 'state_short';
.That’s fine, I can change the way jobs are posted to include that.
Does the
name
field relate to$data['hiringOrganization']['name'] = get_the_company_name( $post );
?Forum: Plugins
In reply to: [WP Job Manager] Jobs not showing on [jobs orderby=date] pageI have resolved this but I don’t know why this works:
The shorcode I was using [jobs orderby=date show_pagination=true]. The new job posts did NOT show up.
I changed the shortcode to [jobs orderby=date order=desc show_pagination=true], and now they show up.
Forum: Plugins
In reply to: [WP Job Manager] Jobs not showing on [jobs orderby=date] pageI don’t think this is a plugin conflict either.
I have this happening on 3 different sites, which have different versions of WordPress and Job Manager installed, as well as different plugins…
I do have a CRON job running, to check whether the job should still be “featured”, although this code has been in place for quite a while with no issues.
/* Cron job to check whether job still needs to be featured */ add_action('my_daily_event', 'do_this_daily'); function my_activation() { if( !wp_next_scheduled( 'my_daily_event' )) { wp_schedule_event( current_time( 'timestamp' ), 'daily', 'my_daily_event'); } } add_action('wp', 'my_activation'); function do_this_daily() { global $wpdb; $results = $wpdb->get_results( "SELECT ID, post_date_gmt FROM wp_posts WHERE post_type = 'job_listing'" ); $jobdates = array(); foreach($results as $oneitem) { $jobdates[$oneitem->ID]=$oneitem->post_date_gmt; } foreach($jobdates as $key => $value) { $postdate = $value; $id = $key; $today = time(); $postdate = strtotime($postdate); $difference = round(abs($today-$postdate)/60/60); if($difference > 72) { $wpdb->query( $wpdb->prepare( "UPDATE $wpdb->postmeta SET meta_value = replace(meta_value, '1', '0') WHERE meta_key = '_featured' AND post_id = %d", $id )); WP_Job_Manager_Cache_Helper::get_transient_version( 'get_job_listings', true ); } } }
- This reply was modified 7 years, 3 months ago by ouegy.
Forum: Plugins
In reply to: [WP Job Manager] Jobs not showing on [jobs orderby=date] pageHi Davor,
Yes, that is what is happening, although the listings are submitted from a third party website.
That option is not ticked.
Adding a job from the back end has no problems.
Thanks,
Ian
Forum: Plugins
In reply to: [WP Job Manager] Jobs not showing on [jobs orderby=date] page@jonryan Clicking ‘update’ on a job from the dashboard.
Forum: Plugins
In reply to: [Search & Filter] Stylesheet served over http not httpsIt is the use of WP_PLUGIN_URL rather than plugins_url()
Would you be able to provide an update to the plugin for this?
Thanks
Forum: Plugins
In reply to: [Gravity PDF] .pdf extensions uploaded through Gravity Forms not showingHi,
Is it possible to use
<object>
rather than<a>
?I used the following but it always uses the alt: so still no image showing
<object data="<?php echo $value ?>" type="application/pdf" width="500" height="500"> alt : <a href="<?php echo $value ?>"><?php echo $value ?></a> </object>
Thanks
Forum: Plugins
In reply to: [Gravity PDF] .pdf extensions uploaded through Gravity Forms not showingSo how would this work then?
Get the extension from the url string, check if .pdf, display an
<a>
tag if so, otherwise display an<img>
tag?Thanks
Forum: Plugins
In reply to: [Contact Form 7] Required Fields not workingAdded this to functions.php
add_filter( ‘wpcf7_support_html5’, ‘__return_false’ );
seems to do the trick
Forum: Plugins
In reply to: [Contact Form 7] Required Fields not workingRemoving the novalidate attribute in Firbug solves this. How can I remove this attribute permanently?
Forum: Plugins
In reply to: [WP Job Manager] Latest job does not appear on the [jobs] pagehttps://tbc-recruit.com/vacancies/
Spanish Speaking Account Executive
It has a job type.
It’s appearing on the site now but has taken about 5 hrs…
Thanks Mike,
I’ll give that a try and see if it fixes the problem
I stand corrected!
Updating the ‘sticky’ jobs has now returned them to below the featured jobs.
How would I stop this happening again?
Thanks
I’m pretty sure it’s not a caching issue.
Search has no effect on ‘stickiness’.
Forum: Plugins
In reply to: [WP Job Manager] How to remove empty regions from .job_filtersAh it’s not in the core plugin – it’s in the Job Regions add-on. Found and fixed the issue.